Historical commentary by Matthew Henry. The wording and interpretations below belong to the original source.
Believing Confidence; Consecration to God.
This psalm is entitled Michtam, which some translate a golden psalm, a very precious one, more to be valued by us than gold, yea, than much fine gold, because it speaks so plainly of Christ and his resurrection, who is the true treasure hidden in the field of the Old Testament.
I. David here flies to God's protection with a cheerful believing confidence in it ( v. 1 ): " Preserve me, O God! from the deaths, and especially from the sins, to which I am continually exposed; for in thee, and in thee only, do I put my trust. " Those that by faith commit themselves to the divine care, and submit themselves to the divine guidance, have reason to hope for the benefit of both. This is applicable to Christ, who prayed, Father, save me from this hour, and trusted in God that he would deliver him.
II. He recognizes his solemn dedication of himself to God as his God ( v. 2 ): " O my soul! thou hast said unto the Lord, Thou art my Lord, and therefore thou mayest venture to trust him." Note, 1. It is the duty and interest of every one of us to acknowledge the Lord for our Lord, to subject ourselves to him, and then to stay ourselves upon him. Adonai signifies My stayer, the strength of my heart. 2. This must be done with our souls: "O my soul! thou hast said it." Covenanting with God must be heart-work; all that is within us must be employed therein and engaged thereby. 3. Those who have avouched the Lord for their Lord should be often putting themselves in mind of what they have done. "Hast thou said unto the Lord, Thou art my Lord? Say it again then, stand to it, abide by it, and never unsay it. Hast thou said it? Take the comfort of it, and live up to it. He is thy Lord, and worship thou him, and let thy eye be ever towards him."
III. He devotes himself to the honour of God in the service of the saints ( v. 2, 3 ): My goodness extends not to thee, but to the saints. Observe, 1. Those that have taken the lord for their Lord must, like him, be good and do good; we do not expect happiness without goodness. 2. Whatever good there is in us, or is done by us, we must humbly acknowledge that it extends not to God; so that we cannot pretend to merit any thing by it. God has no need of our services; he is not benefited by them, nor can they add any thing to his infinite perfection and blessedness. The wisest, and best, and most useful, men in the world cannot be profitable to God, Job xxii. 2 ; xxxv. 7 . God is infinitely above us, and happy without us, and whatever good we do it is all from him; so that we are indebted to him, not he to us: David owns it ( 1 Chron. xxix. 14 ), Of thy own have we given thee. 3. If God be ours, we must, for his sake, extend our goodness to those that are his, to the saints in the earth; for what is done to them he is pleased to take as done to himself, having constituted them his receivers. Note, (1.) There are saints in the earth; and saints on earth we must all be, or we shall never be saints in heaven. Those that are renewed by the grace of God, and devoted to the glory of God, are saints on earth. (2.) The saints in the earth are excellent ones, great, mighty, magnificent ones, and yet some of them so poor in the world that they need to have David's goodness extended to them. God makes them excellent by the grace he gives them. The righteous is more excellent than his neighbour, and then he accounts them excellent. They are precious in his sight and honourable; they are his jewels, his peculiar treasure. Their God is their glory, and a diadem of beauty to them. (3.) All that have taken the Lord for their God delight in his saints as excellent ones, because they bear his image, and because he loves them. David, though a king, was a companion of all that feared God ( Ps. cxix. 63 ), even the meanest, which was a sign that his delight was in them. (4.) It is not enough for us to delight in the saints, but, as there is occasion, our goodness must extend to them; we must be ready to show them the kindness they need, distribute to their necessities, and abound in the labour of love to them. This is applicable to Christ. The salvation he wrought out for us was no gain to God, for our ruin would have been no loss to him; but the goodness and benefit of it extend to us men, in whom he delighteth, Prov. viii. 31 . For their sakes, says he, I sanctify myself, John xvii. 19 . Christ delights even in the saints on earth, notwithstanding their weaknesses and manifold infirmities, which is a good reason why we should.