2 Samuel 22:25

23 For all his judgments were before me: and as for his statutes, I did not depart from them.

24 I was also upright before him, and have kept myself from mine iniquity.

Therefore the LORD hath recompensed me according to my righteousness; according to my cleanness in his eye sight.

26 With the merciful thou wilt shew thyself merciful, and with the upright man thou wilt shew thyself upright.

27 With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
So the LORD has repaid me according to my righteousness, according to my cleanness in His sight.
KJV
Therefore the LORD hath recompensed me according to my righteousness; according to my cleanness in his eye sight.
WEB
Therefore the LORD has rewarded me according to my righteousness, According to my cleanness in his eyesight.
ASV
Therefore hath Jehovah recompensed me according to my righteousness, According to my cleanness in his eyesight.
DARBY
And Jehovah hath recompensed me according to my righteousness, According to my cleanness in his sight.
BLB
And YHWH has repaid me according to my righteousness, according to my cleanness before His eyes.
ÅB
Og Herren gjengjeldte meg etter min rettferdighet, etter min renhet for hans øyne.
OTB
Derfor har Herren gjengjeldt meg etter min rettferdighet,
Etter min renhet foran Hans øyne.
B1930
Og Herren gjengjeldte mig efter min rettferdighet, efter min renhet for hans øine.

Study notes (Tyndale)

Original text and word study

Cross references