This psalm was probably written after an attack was made upon Jerusalem. And it praises the greatness of God who protected her.
Great is the Lord, and most worthy of praise, in the city of our God, his holy mountain. (1)
After praising the beauty of Zion in Jerusalem, it says,
God is in her citadels; he has shown himself to be her fortress. When the kings joined forces, when they advanced together, they saw her and were astounded; they fled in terror. (3-5)
The psalmist then sings,
As we have heard, so we have seen in the city of the Lord Almighty, in the city of our God: God makes her secure forever. (8)
What can we get from this? Just as God watched over and protected the city he made his dwelling in, he watches over and protects us. For God no longer lives in a temple within a city, he lives within human hearts.
And though our Enemy may rise up to attack us, God will make us secure if we’ll just put our trust in him.
So in times of trouble, let us not live in fear, but rather “meditate on his unfailing love.” (9)
In his eyes, we are his beautiful dwelling place and his joy, not to mention his precious children, and he will not fail to defend us.
And when we see his deliverance, let us not forget to thank him for his goodness, remembering always that,
This God is our God for ever and ever; he will be our guide even to the end. (14)