Psalm 18:16-27 King James Version (KJV)
16 He sent from above, he took me, he drew me out of many waters.
17 He delivered me from my strong enemy, and from them which hated me: for they were too strong for me.
18 They prevented me in the day of my calamity: but the Lord was my stay.
19 He brought me forth also into a large place; he delivered me, because he delighted in me.
20 The Lord rewarded me according to my righteousness; according to the cleanness of my hands hath he recompensed me.
21 For I have kept the ways of the Lord, and have not wickedly departed from my God.
22 For all his judgments were before me, and I did not put away his statutes from me.
23 I was also upright before him, and I kept myself from mine iniquity.
24 Therefore hath the Lord recompensed me according to my righteousness, according to the cleanness of my hands in his eyesight.
25 With the merciful thou wilt shew thyself merciful; with an upright man thou wilt shew thyself upright;
26 With the pure thou wilt shew thyself pure; and with the froward thou wilt shew thyself froward.
27 For thou wilt save the afflicted people; but wilt bring down high looks.