And David sang this song to the LORD on the day the LORD had delivered him from the hand of all his enemies and from the hand of Saul.
A heading fixes this song to one specific moment — not a general habit of praise but a single act of worship offered on the day David's deliverance from every enemy, Saul above all, was finally complete.
For the waves of death engulfed me; the torrents of chaos overwhelmed me.
The song turns from praise to memory, and the images shift with it — no longer solid rock and shield but water and rope, the two things a drowning, trapped man fears most. Death itself is pictured as breaking waves closing over him, one after another, with no space to breathe between them.
Then the earth shook and quaked; the foundations of the heavens trembled; they were shaken because He burned with anger.
God's answer to that cry is described as nothing less than the natural order itself convulsing — the earth reeling, the very foundations under the heavens shaking, because God himself is moving in anger on David's behalf.
He reached down from on high and took hold of me; He drew me out of deep waters.
After the storm, the rescue itself is described with sudden, intimate simplicity: God reaches down from the height of everything just described and takes hold of David directly, pulling him out of deep water — the same kind of rescue, and very nearly the same wording, that gave Moses his own name centuries earlier.
The LORD has rewarded me according to my righteousness; He has repaid me according to the cleanness of my hands.
David turns from what God did to why, and the language of reward and righteousness that follows is not a claim to sinless perfection — David has already confessed his own worst failure elsewhere in this book — but a claim about the basic direction of his life: faithfulness to the relationship, not flawlessness within it.
To the faithful You show Yourself faithful, to the blameless You show Yourself blameless;
The song widens from David's own case to a general principle about how God deals with anyone: with the merciful, God shows himself merciful; with the blameless, blameless — the pattern of the last several verses turned into something true for every person, not David alone.
For who is God besides the LORD? And who is the Rock except our God?
A rhetorical question functions as its own answer: no other god, no other rock exists besides the Lord — the uniqueness claim underneath everything else the song has said about him.
I pursued my enemies and destroyed them; I did not turn back until they were consumed.
The tone shifts from rescue to conquest: David pursuing his own enemies now, rather than simply being pursued — relentless language, refusing to turn back until the threat is fully finished.
The LORD lives, and blessed be my Rock! And may God, the Rock of my salvation, be exalted—
The song closes the way it opened, naming God its rock one final time — the same image the very first line reached for, now returned to as a blessing rather than a claim, an envelope around the whole psalm that frames everything in between as one continuous act of praise rather than a list of separate favors.