Хасидус к Тегилим 122:5

כִּ֤י שָׁ֨מָּה ׀ יָשְׁב֣וּ כִסְא֣וֹת לְמִשְׁפָּ֑ט כִּ֝סְא֗וֹת לְבֵ֣ית דָּוִֽיד׃

Ибо были установлены престолы для суда, престолы дома Давида.

Arvei Nachal

However that is in the rest of the land of Israel, but it is not the case in Jerusalem. As Tosafot wrote that its sanctity exists permanently. Hence these two things that are in its favor are always present in it, even when it is destroyed. And the reason that Jerusalem is better than all of the land of Israel is because its sanctity is a comprehensive sanctity, since it was apportioned to the tribes. So the congregation of Israel [as a whole] has a portion and a right to Jerusalem, as stated earlier. And behold, there are two reasons why Jerusalem was not apportioned to the tribes: One reason is that the sacrifices and the altar and all of its requirements need to be from the entire Jewish people. Hence it was not apportioned. And also because all of the Jewish people were commanded about the appointment of judges, in all of your gates (Deuteronomy 16:18), which is the appointment of a minor Sanhedrin [local court] in every town. Yet it is found in Sanhedrin that a small town is exempt. And, if so, with what do they fulfill the commandment of “in all of your gates?” [They do so] with the great Sanhedrin that convened in Jerusalem. For it is considered “all of your gates,” since all of the tribes have a portion in it. And this is [the meaning of] that which King David, peace be upon him, said: Jerusalem is always built up, like a city knit together (Psalms 122:3). For there are always these two things in its favor together there. And the reason is that There the tribes used to go up, the tribes of the Lord (Psalms 122:4), since all of the tribes would go up to offer sacrifices there. And also Since set thrones of judgment are there, etc. (Psalms 122:5). And because of that, its sanctity is comprehensive and was sanctified for [all] of the future. As a result, it always has these two virtues.