First the Temple, then the Messiah.
It appears that the Passover Haggadah reverses the logical order by first expressing the desire to return to Israel before the desire to be freed from slavery. After all, first you have to free yourself from the burden of the nations before you arrive in Israel. This was also the approach of the Israelites upon their exodus from Egypt. They were freed from slavery on Rosh Hashanah and left Egypt in Nisan heading towards the Land of Israel (according to what is written in Tractate Rosh Hashanah, page 11, page 1 - " on Rosh HaShana our forefathersโ slavery in Egypt ceased;").
The truth is that this liberation could also have been occurred in reverse: the Israelites could have reached the Land of Israel while remaining subordinate to the nations. This is the explanation of the verse given by the Vilna Gaon "Zion shall be redeemed in judgment and her captives in righteousness" . (Isaiah A, 20). Jerusalem will first be freed, and then Israel.
The Abudarham shares the same view. According to him, the Nation of Israel will be able to get their land back, but complete freedom will only be received in the days of the Messiah. This view is also supported by Sages in the Jerusalem Talmud, where it is claimed that " Rebbi Aแธฅa said, this implies that the Temple will be rebuilt before the kingdom of Davidโs dynasty " (Second Tithe 5:2).
In tractate Megillah, the Amorites also use this order in standing prayer. The blessing for the building of Jerusalem precedes the blessing for the restoration of the kingdom of the house of David. Thus, the liberation process begins with the rebuilding of Jerusalem and the Third Temple, before the coming of the Messiah. The Gemara in Tractate Megillah (17b) expresses the idea in the following words: " the blessing of the kingdom of David follows the blessing of the building of Jerusalem." On this Rashi explains that "after the Jews return to the Temple, they will ask for... the name of David as your king." This concept is also present in the Zohar, where it is said that "the building of the temple precedes the Gathering of Israel".
This order is also expressed in the Passover Haggadah with the verse: โNow we are here. Next year in the land of Israel. This year we are slaves. Next year we will be free.โ In other words, although we are still not under the yoke of nations, we will still celebrate the holiday of Passover in the Temple. Only then will we achieve โThis year we are slaves. Next year we will be free.โ, which symbolizes our freedom from the slavery of nations, and achieve absolute freedom.ย
(Words about the Torah from Rabbi Ariel)