The psalm opens with a double cry: O Lord, God of vengeance, shine forth and rise up as judge of the earth, and repay the proud what they deserve. Verses 3-7 ask how long the wicked will exult. They pour out arrogant words, crush the Lord's people, kill the widow, the sojourner and the fatherless, and say that God does not see.
In verses 8-11 the psalmist answers those fools: will the one who planted the ear not hear? Will the one who formed the eye not see? Will the one who instructs the nations not correct? The Lord knows the thoughts of man and knows they are a breath. Then the tone shifts: blessed is the man whom God disciplines and teaches from his law, because it gives him rest from days of trouble while a pit is dug for the wicked. The Lord will not forsake his people.
In verses 16-23 the psalmist tells his own experience. No one rose up with him against the wicked, and if the Lord had not helped him, he would soon have dwelt in the silence of death. When he thought his foot was slipping, the Lord's steadfast love held him up, and God's consolations cheered his soul when his cares were many. The psalm closes with the certainty that the Lord is his refuge and will bring back on the wicked their own evil.