David begins with an urgent plea: save me, O God, for the waters have come up to my soul. He is sinking in deep mire where there is no foothold, and he is weary with crying out, his throat parched and his eyes failing as he waits for God. Those who hate him without cause are more than the hairs of his head, and they make him restore what he did not steal. He admits that God knows his folly, yet asks that those who wait for God not be put to shame because of him.
Verses 7 to 12 explain his suffering: for God's sake he has borne reproach. He has become a stranger to his brothers and an alien to his mother's sons. Zeal for God's house has consumed him, and the insults of those who insult God have fallen on him. He wept and fasted, put on sackcloth, and they mocked him; he became the talk of those who sit in the gate and the song of drunkards.
Verses 13 to 21 are the prayer proper: at an acceptable time, may God answer in the abundance of his steadfast love and rescue him from the mire. He asks not to be swept away or swallowed by the deep. God knows his reproach, his shame and his dishonor. Reproach has broken his heart. He looked for comforters and found none. They gave him poison for food and vinegar for his thirst.
Verses 22 to 28 ask that his enemies reap the consequences of their wickedness: that their table become a snare, their eyes grow dark and their camp be desolate. May they be blotted out of the book of the living and not be enrolled with the righteous. Finally, in verses 29 to 36, David declares himself afflicted and in pain, yet he will praise God's name with song, which will please the Lord more than an ox. The humble will see it and be glad. Heaven, earth and the seas will praise him, for God will save Zion, rebuild the cities of Judah, and those who love his name will dwell in it.