2 Samuel 22:24 in the King James Version
I was also upright before him, and have kept myself from mine iniquity.
Context
23 For all his ordinances were before me. As for his statutes, I didn’t depart from them.
24 I was also perfect toward him. I kept myself from my iniquity.
25 Therefore the LORD has rewarded me according to my righteousness, According to my cleanness in his eyesight.