Bamidbar / Numbers 7:1 · Drash
וַיְהִי בְּיוֹם כַּלּוֹת מֹשֶׁה לְהָקִים אֶת־הַמִּשְׁכָּן וַיִּמְשַׁח אֹתוֹ וַיְקַדֵּשׁ אֹתוֹ וְאֶת־כָּל־כֵּלָיו וְאֶת־הַמִּזְבֵּחַ וְאֶת־כָּל־כֵּלָיו וַיִּמְשָׁחֵם וַיְקַדֵּשׁ אֹתָם׃
On the day that Moshe finished setting up the Mishkan, he anointed it and made it holy, with all its vessels, and the altar with all its vessels. He anointed them and made them holy.
Drash דְּרָשׁ
The Mishkan as a pledge
A guest comes to a house and brings a gift. And sometimes the master of the house gives his most precious thing as a pledge to save his family. What was the Mishkan for Israel: a gift or a pledge?
Tanchuma: Mishkan (מִשְׁכָּן) sounds like pledge (מַשְׁכּוֹן): if Israel sins, the Mishkan will be taken as a pledge in place of the people. And also: at Sinai the Almighty promised "I will come laden with blessings," and on the day the Mishkan was set up He came and blessed: "May the Eternal bless you."
How Midrash Tanchuma (Buber) explain it
Midrash Tanchuma (Buber) On the day that Moshe (Moses) finished
This is what the verse says: "How good are your tents, Yaakov (Jacob), your dwellings, Israel" (Bamidbar / Numbers 24:5). If tents, why dwellings? And if dwellings, why tents? But "how good are your tents" means the tents of your dwellings (מִשְׁכְּנוֹתֶיךָ). Do not read it so, but read "your pledges" (מַשְׁכּוֹנוֹתֶיךָ). The Holy One, blessed is He, said to Moshe: "Tell Israel to make Me a Mishkan (מִשְׁכָּן): if they sin, it will be taken from them as a pledge." Know that this is so. When they sinned, what is written? "The Almighty heard and was wrathful" (Tehillim / Psalms 78:59). And what is written after it? "And He forsook the Mishkan of Shilo, the tent where He dwelt among people" (Tehillim / Psalms 78:60). This is the Mishkan, which was made only to be a pledge for Israel.
Midrash Tanchuma (Buber) On the day that Moshe finished
Rabbi Berechya the kohen said: even before the Mishkan was set up, when Israel stood at Mount Sinai, the Holy One, blessed is He, hinted to them and said: "When I come to you, I will come laden with blessings." Rabbi Berechya the kohen said: "Shall a man be more righteous than the Almighty?" (Iyov / Job 4:17). When Yaakov came to Pharaoh, he did not leave him until he had blessed him. And how did he bless him? He said to him: "May the Nile rise to your feet." From where do we know this? For it says: "And Yaakov blessed Pharaoh" (Bereshit / Genesis 47:7). And I, when I come to you, will come laden with blessings. Where did He hint this to them at Sinai? For it says: "An altar of earth you shall make for Me" and "I will come to you and bless you" (Shemot / Exodus 20:21). And when He came to them, He blessed them, as it says: "May the Eternal bless you." When? On the day the Mishkan was set up: "On the day that Moshe finished."
Takeaway
"Mishkan" (מִשְׁכָּן) and "pledge" (מַשְׁכּוֹן) are written with the same letters: mem (מ), shin (ש), kaf (כ), nun (נ).
Rashi: "Mishkan" stands twice at the opening of the Mishkan's accounts as a hint at the Temple, which was twice taken as a pledge when it was destroyed for the sins of Israel (Rashi on Shemot / Exodus 38:21).
The Mishkan stood in Shilo in the days of the judges, and later that place was forsaken, and the prophet Yirmeyahu (Jeremiah) recalls it (Yirmeyahu / Jeremiah 7:12).
The priestly blessing "May the Eternal bless you" is written right before the account of the day the Mishkan was set up (Bamidbar / Numbers 6:24, 7:1).