Historical commentary by Matthew Henry. The wording and interpretations below belong to the original source.
Triumphant Praise.
We have three things in these verses:—
I. The believing acknowledgment which David makes of God's goodness to his people in general, v. 19, 20 .
1. God is good to all, but he is, in a special manner, good to Israel. His goodness to them is wonderful, and will be, to eternity, matter of admiration: O how great is thy goodness! How profound are the counsels of it! how rich are the treasures of it! how free and extensive are the communications of it! Those very persons whom men load with slanders God loads with benefits and honours. Those who are interested in this goodness are described to be such as fear God and trust in him, as stand in awe of his greatness and rely on his grace. This goodness is said to be laid up for them and wrought for them. (1.) There is a goodness laid up for them in the other world, an inheritance reserved in heaven ( 1 Pet. i. 4 ), and there is a goodness wrought for them in this world, goodness wrought in them. There is enough in God's goodness both for the portion and inheritance of all his children when they come to their full age, and for their maintenance and education during their minority. There is enough in bank and enough in hand. (2.) This goodness is laid up in his promise for all that fear God, to whom assurance is given that they shall want no good thing. But it is wrought, in the actual performance of the promise, for those that trust in him—that by faith take hold of the promise, put it in suit, and draw out to themselves the benefit and comfort of it. If what is laid up for us in the treasures of the everlasting covenant be not wrought for us, it is our own fault, because we do not believe. But those that trust in God, as they have the comfort of his goodness in their own bosoms, so they have the credit of it (and the credit of an estate goes far with some); it is wrought for them before the sons of men. God's goodness to them puts an honour upon them and rolls away their reproach; for all that see them shall acknowledge them, that they are the seed which the Lord hath blessed, Isa. lxi. 9 .
2. God preserves man and beast; but he is, in a special manner, the protector of his own people ( v. 20 ): Thou shalt hide them. As his goodness is hid and reserved for them, so they are hid and preserved for it. The saints are God's hidden ones. See here, (1.) The danger they are in, which arises from the pride of man and from the strife of tongues; proud men insult over them and would trample on them and tread them down; contentious men pick quarrels with them; and, when tongues are at strife, good people often go by the worst. The pride of men endangers their liberty; the strife of tongues in perverse disputings endangers truth. But, (2.) See the defence they are under: Thou shalt hide them in the secret of thy presence, in a pavilion. God's providence shall keep them safe form the malice of their enemies. He has many ways of sheltering them. When Baruch and Jeremiah were sought for the Lord hid them, Jer. xxxvi. 26 . God's grace shall keep them safe from the evil of the judgments that are abroad; to them they have no sting; and they shall be hidden in the day of the Lord's anger, for there is no anger at them. His comforts shall keep them easy and cheerful; his sanctuary, where they have communion with him, shelters them from the fiery darts of terror and temptation; and the mansions in his house above shall be shortly, shall be eternally, their hiding-place from all danger and fear.