2 Samuel 22:19-31 KJV
They prevented me in the day of my calamity: but the LORD was my stay.
He brought me forth also into a large place: he delivered me, because he delighted in me.
The LORD rewarded me according to my righteousness: according to the cleanness of my hands hath he recompensed me.
For I have kept the ways of the LORD, and have not wickedly departed from my God.
For all his judgments were before me: and as for his statutes, I did not depart from them.
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.
With the merciful thou wilt shew thyself merciful, and with the upright man thou wilt shew thyself upright.
With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself unsavoury.
And the afflicted people thou wilt save: but thine eyes are upon the haughty, that thou mayest bring them down.
For thou art my lamp, O LORD: and the LORD will lighten my darkness.
For by thee I have run through a troop: by my God have I leaped over a wall.
As for God, his way is perfect; the word of the LORD is tried: he is a buckler to all them that trust in him.