Psalms 48:9

We have thought of thy lovingkindness, O God, in the midst of thy temple.

God's people remember, consider and meditate on His lovingkindness and loving care while gathered inside His temple, where He meets with them. The psalm was written by the sons of Korah, Ezra and others after the return of the Jews from captivity in Babylon in the reign of Cyrus king of Persia. It expresses the mingled joy, sorrow and anxiety of the returning exiles. It refers to the building and dedication of the second temple and the glorious triumphs connected with it.

The meditation in the temple at Jerusalem belongs to the praise of Jerusalem as God's chosen city. God chose Jerusalem as the place for His name to dwell and there established His house, the sanctuary, where His glory was revealed, so that in a special sense it became His dwelling place, the capital city of His spiritual kingdom, and the center from which His light and salvation were to go forth to the whole world. God's people remembered His love in the city where He had made Himself known as a refuge and whose praise, like His name, reaches to the ends of the earth. The verse is one of God's promises, joined in its context to praise of His name to the ends of the earth, His right hand full of righteousness, gladness in Zion and Judah because of His judgments, and His everlasting guidance even unto death.

The psalm to which the verse belongs points prophetically to the glory of Christ's kingdom. Thinking about God's lovingkindness in the temple is a way to keep the mind from evil thoughts and cultivate holy thoughts.