17 “He reached down from on high and took hold of me;
he drew me out of deep waters.
18 He rescued me from my powerful enemy,
from my foes, who were too strong for me.
19 They confronted me in the day of my disaster,
but the Lord was my support.
20 He brought me out into a spacious place;
he rescued me because he delighted in me.
21 “The Lord has dealt with me according to my righteousness;
according to the cleanness of my hands he has rewarded me.
22 For I have kept the ways of the Lord;
I am not guilty of turning from my God.
23 All his laws are before me;
I have not turned away from his decrees.
24 I have been blameless before him
and have kept myself from sin.
25 The Lord has rewarded me according to my righteousness,
according to my cleanness in his sight.
26 “To the faithful you show yourself faithful,
to the blameless you show yourself blameless,
27 to the pure you show yourself pure,
but to the devious you show yourself shrewd.
28 You save the humble,
but your eyes are on the haughty to bring them low.
29 You, Lord, are my lamp;
the Lord turns my darkness into light.
30 With your help I can advance against a troop ;
with my God I can scale a wall.
31 “As for God, his way is perfect:
The Lord’s word is flawless;
he shields all who take refuge in him.
32 For who is God besides the Lord?
And who is the Rock except our God?
33 It is God who arms me with strength
and keeps my way secure.
34 He makes my feet like the feet of a deer;
he causes me to stand on the heights.
35 He trains my hands for battle;
my arms can bend a bow of bronze.
36 You make your saving help my shield;
your help has made me great.
37 You provide a broad path for my feet,
so that my ankles do not give way.
38 “I pursued my enemies and crushed them;
I did not turn back till they were destroyed.
39 I crushed them completely, and they could not rise;
they fell beneath my feet.
40 You armed me with strength for battle;
you humbled my adversaries before me.
41 You made my enemies turn their backs in flight,
and I destroyed my foes.
42 They cried for help, but there was no one to save them—
to the Lord, but he did not answer.
43 I beat them as fine as the dust of the earth;
I pounded and trampled them like mud in the streets.
44 “You have delivered me from the attacks of the peoples;
you have preserved me as the head of nations.
People I did not know now serve me,
45 foreigners cower before me;
as soon as they hear of me, they obey me.
46 They all lose heart;
they come trembling from their strongholds.
47 “The Lord lives! Praise be to my Rock!
Exalted be my God, the Rock, my Savior!
48 He is the God who avenges me,
who puts the nations under me,
49 who sets me free from my enemies.
You exalted me above my foes;
from a violent man you rescued me.
50 Therefore I will praise you, Lord, among the nations;
I will sing the praises of your name.
51 “He gives his king great victories;
he shows unfailing kindness to his anointed,
to David and his descendants forever.”