Another interpretation of (Numbers 7:1): "So it came to pass on the day that Moses finished setting up the Tabernacle." Rabbi Yochanan said: What is the meaning of "on the day Moses finished" (kalot)? It is a term of annihilation (kiluy). On the day the Tabernacle was erected, the destructive demons (mazikin) were annihilated from the world. For until the Tabernacle was erected, the destructive demons were prevalent in the world. When Moses ascended the mountain, he would recite this psalm: "He who dwells in the shelter of the Most High" (Psalms 91:1) — for he dwelt in the secret place of the Holy One, blessed be He. "He abides in the shadow of the Almighty" (ibid.) — for he lodged there one hundred and twenty days. "I say of the Lord, my refuge" (Psalms 91:2) — He is my refuge, and they made me as a wall. "My God, in whom I trust" (ibid.) — the Holy One, blessed be He, said to him: You have trusted in Me; [by your life,] I will stand up for you. "For He will save you from the snare of the fowler" (Psalms 91:3) — [what is "from the snare of the fowler"?] From the trap of the hunter. "He will cover you with His pinions, and under His wings you will take refuge; His truth is a shield and buckler" (Psalms 91:4). Resh Lakish said: I become a shield (tzinah) to anyone who engages in (socher) the Torah. "You shall not fear the terror of the night" (Psalms 91:5) — [from here] we learn that they were afraid. "Nor the arrow that flies by day." Rabbi Berekhyah the Priest [Berabbi] said: There is a destructive demon that flies like a bird and shoots like an arrow. "Nor the pestilence that walks in darkness, nor the destruction that lays waste at noon" (Psalms 91:6) — this is Ketev Meriri, for anyone who sees it has no life [in the world], whether man, beast, or wild animal. How is it formed? Its head resembles a calf, and one horn comes out from the middle of its forehead, and it has dominion from the seventeenth of Tammuz until the ninth of Av. Therefore it is written, "the destruction that lays waste at noon." "No evil shall befall you, nor any plague come near your tent" (Psalms 91:10) — up to "your tent." Thus, until the day the Tabernacle was erected, the destructive demons were prevalent, and on the day the Tabernacle was erected they were annihilated. Said Resh Lakish: What need have I to learn this from the book of Psalms? Let us learn it from its own place (Numbers 6:24): "The Lord bless you" — from the destructive demons — "and keep you" — from all evil. When? On the day the Tabernacle was erected: "So it came to pass on the day that Moses finished."
The Day the Tabernacle Banished the Demons from the World
Midrash Tanchuma Buber, Nasso 27:1
ד"א ויהי ביום כלות משה, אמר ר' יוחנן מהו ביו כלות, לשון כילוי, ביום שהוקם המשכן נתכלו המזיקין מן העולם, שעד שלא הוקם את המשכן היו מזיקין מצויין בעולם, כשהיה משה עולה בהר, היה אומר המזמור הזה, יושב בסתר עליון (תהלים צא א), שישב בסתרו של הקב"ה, בצל שדי יתלונן (שם), שלן שם ק"כ יום, אומר לה' מחסי (שם ב), שהוא מחסי ועשו לי כחומה, אלהי אבטח בו (שם), א"ל הקב"ה בי בטחת, [חייך] אני עומד לך, כי הוא יצילך מפח יקוש (שם ג), [מהו מפח יקוש], ממצודתו של צייד, תחת כנפיו תחסה צנה וסוחרה אמתו (תהלים צא ד), אמר ריש לקיש צינה אני נעשה לכל מי שהוא סוחר בתורה, לא תירא מפחד לילה (שם ה), [מכאן] שהיו מתייראין, מחץ יעוף יומם. אמר רבי ברכיה הכהן [ברבי], יש מזיק שהוא פורח כעוף, וקושט כחץ, מדבר באפל יהלוך מקטב ישוד צהרים (שם ו), זה קטב מרירי, שכל מי שרואה אותו אין לו חיים [בעולם] בין אדם בין בהמה ובין חיה, כיצד עשוי, ראשו דומה לעגל, וקרן אחת יוצאה מתוך מצחו, והוא שולט משבעה עשר בתמוז עד תשעה באב לפיכך כתיב מקטב ישוד צהרים, לא תאונה אליך רעה ונגע לא יקרב באהליך (שם שם י), עד אהליך, הוי עד יום שהוקם המשכן היו המזיקים מצויין, וביום שהוקם המשכן נתכלו, אמר (רשב"ג) [רשב"ל] מה לי ללמד מספר תהלים, נלמד ממקומו, יברכך ה' מן המזיקין, וישמרך מכל רע, אימתי ביום שהוקם המשכן, ויהי ביום כלות משה.