Psalms 122:4-5

4 That is where the tribes go up— the tribes of the LORD— to praise the name of the LORDaccording to the statute given to Israel.
5 There stand the thrones for judgment, the thrones of the house of David.

Psalms 122:4 in Other Translations

KJV
4 Whither the tribes go up, the tribes of the LORD, unto the testimony of Israel, to give thanks unto the name of the LORD.
ESV
4 to which the tribes go up, the tribes of the LORD, as was decreed for Israel, to give thanks to the name of the LORD.
NLT
4 All the tribes of Israel—the LORD ’s people— make their pilgrimage here. They come to give thanks to the name of the LORD, as the law requires of Israel.
MSG
4 The city to which the tribes ascend, all God's tribes go up to worship, To give thanks to the name of God - this is what it means to be Israel.
CSB
4 where the tribes, the tribes of the Lord, go up to give thanks to the name of the Lord. (This is an ordinance for Israel.)

Psalms 122:4-5 Meaning and Commentary

INTRODUCTION TO PSALM 122

\\<>\\. This is the first of the songs of degrees that bears the name of David: and Kimchi thinks they only were written by him which have his name to them; though he, Abendana, and others, are of opinion that this psalm was composed with a view to the captives in Babylon; who are here represented, and are represented as rejoicing at their going up to Jerusalem, to the solemn feasts there. The inscription in the Syriac version is, ``a "psalm" of David, one of the psalms of ascent, when Cyrus commanded the captivity to go up; spiritually, a promise of good things.'' It seems to be designed for the use of the Israelites, and to be sung by them when they went up to the feasts, three times a year. Some say {a} they sung this by the way, when they carried the firstfruits to Jerusalem. {a} Weemse's Christ. Synagog. l. 1. c. 6. s. 4. p. 144.

Psalms 122:4-5 In-Context

2 Our feet are standing in your gates, Jerusalem.
3 Jerusalem is built like a city that is closely compacted together.
4 That is where the tribes go up— the tribes of the LORD— to praise the name of the LORDaccording to the statute given to Israel.
5 There stand the thrones for judgment, the thrones of the house of David.
6 Pray for the peace of Jerusalem: “May those who love you be secure.
7 May there be peace within your walls and security within your citadels.”
Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.