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

Psalms 18:24

Therefore hath the Lord recompensed me according to my righteousness, according to the cleanness of my hands in his eyesight.

Read in other translations