Albert Barnes' Bible Commentary
Psalms 87 - Introduction
This psalm, like some others, is entitled “a psalm or song;” that is, it so far combined the properties of both a “psalm” and a “song” that it might be called by either name. See the notes at the title to Psalms 65:1. The phrase “for the sons of Korah” may mean, as in the margin, “of the sons of Korah.” See the notes at the title to Psalms 42:1.
The occasion on which the psalm was composed is unknown. The design of the psalm is obvious. It is to exalt Zion as a place to dwell in, and to state the privileges or advantages of having been born there; the honor of such a birth, and the benefit which would he connected with it, from having been brought early under the influence of the true religion, and from having been trained up amidst its institutions. The practical truth which is suggested by the psalm is the honor and benefit of having been born in a land where the true religion prevails; of having been born in connection with the church; of having been early devoted to God; and of having had the benefits of a religious training. The foundation of what is said in the psalm is the honor which we naturally associate with the idea of birth; birth as connected with a family of distinguished worth, wealth, or rank; birth as connected with a particular country, city, or town.