John Gill's Exposition of the Whole Bible
Psalms 87 - Introduction
INTRODUCTION TO PSALM 87
A Psalm or Song for the sons of Korah. Whether this psalm was composed by David, in a view of the temple to be built by his son Solomon; or whether by one that returned from the Babylonish captivity, who wrote it for the comfort of those that wept at the laying of the foundation of the second temple; it seems evident that the subject matter of it is the church of God in Gospel times, and especially in the latter day glory: the title in the Syriac version is,
"concerning the redemption of Jerusalem.''