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

Psalms 18:25

With the merciful thou wilt shew thyself merciful; with an upright man thou wilt shew thyself upright;

Read in other translations