Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
LXX

1 Kings 8:39

then shalt thou hearken from heaven, out of thine established dwelling-place, and shalt be merciful, and shalt do, and recompense to [every] man according to his ways, as thou shalt know his heart, for thou alone knowest the heart of all the children of men:

Read in other translations