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.

Read Psalm 122:4 Using Other Translations

Whither the tribes go up, the tribes of the LORD, unto the testimony of Israel, to give thanks unto the name of the LORD.
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.
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.