David, showing his confidence in God, craves his help, 1-6. He rejoices in his mercy, 7, 8. He prays in his calamity, 9-18. He praises God for his goodness, 19-24.
1 [To the Chief Musician. A Psalm of David.] In you, O LORD, I put my trust. Let me never be ashamed. Deliver me in your righteousness.
2 Bow down your ear to me. Deliver me speedily. Be my strong rock, a house of defense to save me.
3 For you are my rock and my fortress; therefore, for your name's sake lead me and guide me.
4 Pull me out of the net that they have laid secretly for me, for you are my strength.
5 Into your hand I commit my spirit. You have redeemed me, O LORD God of truth.
6 I have hated those who regard lying vanities, but I trust in the LORD.
7 I will be glad and rejoice in your mercy, for you have considered my trouble. You have known my soul in adversities,
8 And have not shut me up into the hand of the enemy. You have set my foot in a large room.
9 Have mercy upon me, O LORD, for I am in trouble. My eye is consumed with grief, even my soul and my belly.
10 For my life is spent with grief and my years with sighing. My strength fails because of my iniquity and my bones are consumed.
11 I was a reproach among all my enemies, but especially among my neighbors, and a fear to my acquaintances. Those who saw me outside fled from me.
12 I am forgotten as a dead man out of mind. I am like a broken vessel.
13 For I have heard the slander of many. Fear was on every side. While they took counsel together against me, they devised to take away my life.
14 But I trusted in you, O LORD. I said, "You are my God."
15 My times are in your hand. Deliver me from the hand of my enemies and from those who persecute me.
16 Make your face to shine upon your servant. Save me for your mercies' sake.
17 Do not let me be ashamed, O LORD, for I have called upon you. Let the wicked be ashamed. Let them be silent in the grave.
18 Let the lying lips be put to silence, which speak grievous things proudly and contemptuously against the righteous.
19 Oh how great your goodness is, which you have laid up for those who fear you, which you have wrought for those who trust in you before the sons of men!
20 You shall hide them in the secret of your presence from the pride of man. You shall keep them secretly in a pavilion from the strife of tongues.
21 Blessed be the LORD, for he has shown me his wonderful kindness in a strong city.
22 For I said in my haste, "I am cut off from before your eyes." Nevertheless, you heard the voice of my supplications when I cried to you.
23 O love the LORD, all his saints, for the LORD preserves the faithful and fully recompenses the proud doer.
24 Be of good courage, and he will strengthen your heart, all you who hope in the LORD.
Matthew Henry Commentary - Psalms, Chapter 31[➚]
John Calvin's Chapter Summary:
David, having been delivered from some great danger, or rather from many dangers, first relates the prayers which he had offered up to God amidst the terrors of death. He then subjoins his thanksgiving, which is no ordinary one; for he celebrates his deliverance at great length, and exhorts all the saints to be of good hope, as they had in him a most excellent and memorable example of God's goodness.
[v.5] - Quoted in Luke 23:46.