David addresses the words of this song to the Lord on the day he delivered him from all his enemies and from the hand of Saul. He begins with a series of names for God: rock, fortress, deliverer, shield, horn of salvation, stronghold. He tells how he called to the Lord in his distress, when the waves of death surrounded him, and how from his temple the Lord heard his voice.
God's response is described with powerful images: the earth trembles, the foundations of heaven shake, smoke rises from his nostrils and fire from his mouth. The Lord bows the heavens and comes down, rides on a cherub and flies on the wings of the wind. He thunders from heaven, shoots arrows and lightning that scatter the enemies, and the channels of the sea are laid bare. From on high he reaches down, takes David and draws him out of many waters, and rescues him from a strong enemy. He brings him out into a broad place because he delighted in him.
David declares that the Lord has rewarded him according to his righteousness and the cleanness of his hands, because he has kept the Lord's ways. With the merciful God shows himself merciful; with the blameless, blameless. David describes how God arms him with strength for battle, trains him to fight, gives him a shield and enlarges his steps. He pursues his enemies and destroys them, and the Lord delivers him from the strife of the people and makes him head of the nations. He praises the living God, the rock of his salvation, and promises to sing his name among the nations. He ends by saying that the Lord gives great salvation to his king and shows steadfast love to his anointed, to David and his offspring forever.