Verses 1-24
Psalm 31 Trust amid apparent hopelessness
In his distress David is dependent entirely on the merciful goodness of God (1-2). He knows God's character well enough to be assured that God will save him (3-5). God will bring victory to those who trust in him, and judgment on those who reject him for other gods (6-8).
Nevertheless, the psalmist's faith is at times shaken by the intensity of his sufferings. Physically and spiritually he feels helpless almost to the point of despair (9-10). Enemies plot against him and friends have deserted him (11-13). Yet he trusts in the steadfast love of God, believing that God will deliver him and destroy his enemies (14-18). He knows that the God in whom he trusts is unfailingly faithful to his people (19-20), and he recalls how God has saved him in the past (21-22). He urges all God's people to love and trust him with patience and courage. Then they will have the strength to bear whatever troubles they meet (23-24).