Historical commentary by Matthew Henry. The wording and interpretations below belong to the original source.
The Pleasures of Public Worship.
Here we have,
I. The pleasure which David and other pious Israelites took in approaching to and attending upon God in public ordinances, v. 1, 2 .
1. The invitation to them was very welcome. David was himself glad, and would have every Israelite to say that he was glad, when he was called upon to go up to the house of the Lord. Note, (1.) It is the will of God that we should worship him in concert, that many should join together to wait upon him in public ordinances. We ought to worship God in our own houses, but that is not enough; we must go into the house of the Lord, to pay our homage to him there, and not forsake the assembling of ourselves together. (2.) We should not only agree with one another, but excite and stir up one another, to go to worship God in public. Let us go; not, "Do you go and pray for us, and we will stay at home;" but, We will go also, Zech. viii. 21 . Not, "Do you go before, and we will follow at our leisure;" or, "We will go first, and you shall come after us;" but, " Let us go together, for the honour of God and for our mutual edification and encouragement." We ourselves are slow and backward, and others are so too, and therefore we should thus quicken and sharpen one another to that which is good, as iron sharpens iron. (3.) Those that rejoice in God will rejoice in calls and opportunities to wait upon him. David himself, though he had as little need of a spur to his zeal in religious exercises as any, yet was so far from taking it as an affront that he was glad of it as a kindness when he was called upon to go up to the house of the Lord with the meanest of his subjects. We should desire our Christian friends, when they have any good work in hand, to call for us and take us along with them.
2. The prospect of them was very pleasing. They speak it with a holy triumph ( v. 2 ): Our feet shall stand within thy gates, O Jerusalem! Those that came out of the country, when they found the journey tedious, comforted themselves with this, that they should be in Jerusalem shortly, and that would make amends for all the fatigues of their journey. We shall stand there as servants; it is desirable to have a place in Jerusalem, though it be among those that stand by ( Zech. iii. 7 ), though it be the door keeper's place, Ps. lxxxiv. 10 . We have now got a resting-place for the ark, and where it is there will we be.