2 Samuel 22:23 in the King James Version
For all his judgments were before me: and as for his statutes, I did not depart from them.
Context
22 For I have kept the LORD’s ways, and have not wickedly departed from my God.
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.