John Gills Exposition of the Bible Commentary - Psalms 87:2
The Lord loveth the gates of Zion ,.... Which the Targum interprets of the schools, as preferable to the synagogues: the Lord loves Zion herself; that is, the church, and therefore has chosen it for his habitation, took up his rest and residence in it, has founded it, and set Christ as King over it, and by whom he has redeemed it; and he loves her gates, the public ordinances; he loves them that come to Zion's gates, and wait and worship there, and who enter in and become members thereof;... read more
Matthew Henry's Complete Commentary - Psalms 87:1-3
Some make the first words of the psalm to be part of the title; it is a psalm or song whose subject is the holy mountains?the temple built in Zion upon Mount Moriah. This is the foundation of the argument, or beginning of the psalm. Or we may suppose the psalmist had now the tabernacle or temple in view and was contemplating the glories of it, and at length he breaks out into this expression, which has reference, though not to what he had written before, yet to what he had thought of; every... read more