1 (To the chief Musician, A Psalm of David.) In thee, O LORD, do I put my trust; let me never be ashamed: deliver me in thy righteousness.
2 Bow down thine ear to me; deliver me speedily: be thou my strong rock, for an house of defence to save me.
3 For thou art my rock and my fortress; therefore for thy name's sake lead me, and guide me.
4 Pull me out of the net that they have laid privily for me: for thou art my strength.
5 Into thine hand I commit my spirit: thou hast redeemed me, O LORD God of truth.
6 I have hated them that regard lying vanities: but I trust in the LORD.
7 I will be glad and rejoice in thy mercy: for thou hast considered my trouble; thou hast known my soul in adversities;
8 And hast not shut me up into the hand of the enemy: thou hast set my feet in a large room.
9 Have mercy upon me, O LORD, for I am in trouble: mine eye is consumed with grief, yea, my soul and my belly.
10 For my life is spent with grief, and my years with sighing: my strength faileth because of mine iniquity, and my bones are consumed.
11 I was a reproach among all mine enemies, but especially among my neighbours, and a fear to mine acquaintance: they that did see me without 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 thee, O LORD: I said, Thou art my God.
15 My times are in thy hand: deliver me from the hand of mine enemies, and from them that persecute me.
16 Make thy face to shine upon thy servant: save me for thy mercies' sake.
17 Let me not be ashamed, O LORD; for I have called upon thee: let the wicked be ashamed, and 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 is thy goodness, which thou hast laid up for them that fear thee; which thou hast wrought for them that trust in thee before the sons of men!
20 Thou shalt hide them in the secret of thy presence from the pride of man: thou shalt keep them secretly in a pavilion from the strife of tongues.
21 Blessed be the LORD: for he hath shewed me his marvellous kindness in a strong city.
22 For I said in my haste, I am cut off from before thine eyes: nevertheless thou heardest the voice of my supplications when I cried unto thee.
23 O love the LORD, all ye his saints: for the LORD preserveth the faithful, and plentifully rewardeth the proud doer.
24 Be of good courage, and he shall strengthen your heart, all ye that hope in the LORD.
Confidence in God. (1-8) Prayer in trouble. (9-18) Praise for God's goodness. (19-24)1-8 Faith and prayer must go together, for the prayer of faith is the prevailing prayer. David gave up his soul in a special manner to God. And with the words, ver. 5, our Lord Jesus yielded up his last breath on the cross, and made his soul a free-will offering for sin, laying down his life as a ransom. But David is here as a man in distress and trouble. And his great care is about his soul, his spirit, his better part. Many think that while perplexed about their worldly affairs, and their cares multiply, they may be excused if they neglect their souls; but we are the more concerned to look to our souls, that, though the outward man perish, the inward man may suffer no damage. The redemption of the soul is so precious, that it must have ceased for ever, if Christ had not undertaken it. Having relied on God's mercy, he will be glad and rejoice in it. God looks upon our souls, when we are in trouble, to see whether they are humbled for sin, and made better by the affliction. Every believer will meet with such dangers and deliverances, until he is delivered from death, his last enemy.9-18 David's troubles made him a man of sorrows. Herein he was a type of Christ, who was acquainted with grief. David acknowledged that his afflictions were merited by his own sins, but Christ suffered for ours. David's friends durst not give him any assistance. Let us not think it strange if thus deserted, but make sure of a Friend in heaven who will not fail. God will be sure to order and dispose all for the best, to all those who commit their spirits also into his hand. The time of life is in God's hands, to lengthen or shorten, make bitter or sweet, according to the counsel of his will. The way of man is not in himself, nor in our friend's hands, nor in our enemies' hands, but in God's. In this faith and confidence he prays that the Lord would save him for his mercies's sake, and not for any merit of his own. He prophesies the silencing of those that reproach and speak evil of the people of God. There is a day coming, when the Lord will execute judgment upon them. In the mean time, we should engage ourselves by well-doing, if possible, to silence the ignorance of foolish men.19-24 Instead of yielding to impatience or despondency under our troubles, we should turn our thoughts to the goodness of the Lord towards those who fear and trust in Him. All comes to sinners through the wondrous gift of the only-begotten Son of God, to be the atonement for their sins. Let not any yield to unbelief, or think, under discouraging circumstances, that they are cut off from before the eyes of the Lord, and left to the pride of men. Lord, pardon our complaints and fears; increase our faith, patience, love, and gratitude; teach us to rejoice in tribulation and in hope. The deliverance of Christ, with the destruction of his enemies, ought to strengthen and comfort the hearts of believers under all their afflictions here below, that having suffered courageously with their Master, they may triumphantly enter into his joy and glory.Commentary by Matthew Henry, 1710.