Shemot / Exodus 29:46 · Remez
וְיָדְעוּ כִּי אֲנִי יְהוָה אֱלֹהֵיהֶם אֲשֶׁר הוֹצֵאתִי אֹתָם מֵאֶרֶץ מִצְרַיִם לְשָׁכְנִי בְתוֹכָם אֲנִי יְהוָה אֱלֹהֵיהֶם׃
And they shall know that I am the Eternal their Almighty, who brought them out of the land of Egypt to dwell among them. I am the Eternal their Almighty.
Remez רֶמֶז
Egypt in the Middle
Word order can speak too. The commentators notice what stands in the middle of a verse and what is said in it twice.
Rabbeinu Bahya: the exodus was on condition that God would dwell among Israel, and this is a need on High, not only of people. In the prophet Hoshea (Hosea), "from the land of Egypt" stands in the middle between "I am the Eternal" and "know no God but Me": I took you out so that you would accept Me. And by the midrash, Israel was redeemed from Egypt by the merit of the Mishkan. Lekach Tov: the second "I am the Eternal their Almighty" means He is faithful in reward.
How Rabbeinu Bahya and Midrash Lekach Tov explain it
Rabbeinu Bahya And they shall know that I am the Eternal their Almighty, who took them out of the land of Egypt to dwell among them
He says that He took them out on condition of dwelling among them, for otherwise He would not have taken them out. And this shows that the dwelling of the Presence of the Creator (שְׁכִינָה) in Israel is a need on High as well, not a need of the common man. And this, in my view, is what the prophet Hoshea, peace be on him, said: "Yet I am the Eternal your Almighty from the land of Egypt, and you shall know no God but Me, and there is no savior beside Me" (Hoshea / Hosea 13:4). He says: I took you out of the land of Egypt only for the sake of "I am the Eternal your Almighty", so that you would accept My rule and know no God but Me. So he mentioned "from the land of Egypt" in the middle.
And so I found in Midrash Tehillim on the verse "When Israel went out of Egypt" (Tehillim / Psalms 114:1): Rabbi Yehoshua ben Levi said that Israel was redeemed from Egypt by the merit of the Mishkan, as it says: "And the Almighty saw the children of Israel" (Shemot / Exodus 2:25), and it is written: "And Moshe saw all the work" (Shemot / Exodus 39:43).
And you have another place to learn from: "who took you out of the land of Egypt" on condition "to dwell among them". Thus far the words of the midrash. And this is what is written: "He desired it for His dwelling" (Tehillim / Psalms 132:13), and it is written: "Here I will dwell, for I have desired it" (Tehillim / Psalms 132:14). And many verses testify to this, and I have already mentioned it on the verse "And He spoke".
Midrash Lekach Tov I am the Eternal their Almighty
Faithful to pay reward and to give each one according to his ways.
Takeaway
The word "and he saw" (וַיַּרְא) stands in two places: when God saw the people's suffering in Egypt and when Moshe (Moses) saw the finished Mishkan. The midrash links the places: redemption came for the sake of the Mishkan.
The verse ends with the same words it begins with: "I am the Eternal their Almighty". Lekach Tov reads this repetition as a promise of reward.
"A need on High" (צֹרֶךְ גָּבוֹהַּ): the Mishkan is needed not only by people, to feel the Creator's nearness, but, so to speak, by the Creator Himself.