The psalm opens with a shared joy: the pilgrim rejoiced when they said to him, let us go to the house of the Lord. Now his feet stand within the gates of Jerusalem, the city that was his goal and that he sang about so many times on the road.
Verses 3 and 4 describe Jerusalem as a city built compactly, bound firmly together, where the tribes go up, the tribes of the Lord, as was decreed for Israel, to give thanks to the name of the Lord. Verse 5 adds that the thrones for judgment are there, the thrones of the house of David, because the city is also the center of justice.
From verse 6 the poem turns into prayer. It calls on the people to pray for the peace of Jerusalem and blesses those who love the city. It asks for peace within its walls and security within its towers. The pilgrim declares that, for the sake of his brothers and friends, he will say, peace be within you, and for the sake of the house of the Lord his God he will seek the good of the city.