In this psalm there is celebrated some notable deliverance of the city of Jerusalem at a time when many kings had conspired to destroy it. The prophet, (whoever was the author of the psalm,) after having given thanks to God for this deliverance, takes occasion from thence to extol in magnificent terms the happy state of that city, seeing it had God for its continual guardian and protector. It would not have been enough for the people of God to have felt and acknowledged that they were once preserved and defended by the power of God, had they not at the same time been assured of being also preserved and protected by the same God in the time to come, because he had adopted them for his peculiar people. The prophet, therefore, chiefly insists upon this point, that it was not in vain that the sanctuary of God was erected upon mount Zion, but that his name was there called upon in order that his power might be conspicuously manifested for the salvation of his people. It is easy to gather from the subject-matter of the psalm that it was composed after the death of David. I indeed admit that among David's enemies there were some foreign kings, and that it was not for want of will on their part that the city of Jerusalem was not utterly destroyed; but we do not read that they ever proceeded the length of besieging it, and reducing it to such extremity as to render it necessary that their efforts should be repressed by a wonderful manifestation of the power of God. It is more probable that the psalm is to be referred to the time of king Ahaz, when the city was besieged and the inhabitants brought to the point of utter despair, and when, nevertheless, the siege was suddenly raised, (2 Kings 16:5;) or else to the time of Jehoshaphat and Asa, (2 Chronicles 14:9; and 20:2) for we know that under their reigns Jerusalem was preserved from utter destruction only by miraculous aid from heaven. This we are to regard as certain, that the Psalmist here exhibited to true believers an example of the favor of God towards them, from which they had reason to acknowledge that their condition was happy, seeing God had chosen for himself a dwelling-place upon mount Zion, that from thence he might preside over them for their good and safety.
A song of praise of the sons of Korah.