The psalm begins with a purpose: I will sing of the steadfast love of the Lord forever and make known his faithfulness to all generations. God made a covenant with his chosen one and swore to David his servant that he would establish his offspring forever and build his throne for all generations.
Verses 5 to 18 celebrate God's greatness. The heavens praise his wonders, and none in the skies can be compared to him. He rules the raging of the sea and crushed Rahab; the heavens and the earth are his, and Tabor and Hermon joyously praise his name. Righteousness and justice are the foundation of his throne, and blessed are the people who know the festal shout.
Verses 19 to 37 recall the covenant: God found David his servant, anointed him with holy oil and will make him the firstborn, the highest of the kings of the earth. If his children forsake his law, he will discipline them, but he will not remove his steadfast love or violate his covenant. Once for all he swore by his holiness that he will not lie to David: his offspring shall endure forever, and his throne like the sun and the moon.
Verses 38 to 52 turn to lament: God seems to have rejected his anointed, defiled his crown, broken down his walls and exalted his enemies. The poet asks how long, where the former steadfast love sworn to David has gone, and asks God to remember the reproach of his servants. A doxology closes the book: blessed be the Lord forever. Amen and Amen.