Vayikra / Leviticus 9:1 · Drash
וַיְהִי בַּיּוֹם הַשְּׁמִינִי קָרָא מֹשֶׁה לְאַהֲרֹן וּלְבָנָיו וּלְזִקְנֵי יִשְׂרָאֵל׃
And it was on the eighth day: Moshe (Moses) called Aharon (Aaron) and his sons and the elders of Israel.
Drash דְּרָשׁ
Mourning before the loss
Sometimes on the happiest day there is unease in your heart. You do not know why, and later you find out.
Midrash Tanchuma: for the seven days of the inauguration Moshe (Moses) told Aharon (Aaron) and his sons to keep mourning, as the Holy One, blessed is He, kept seven days of mourning for the world before the Flood. They kept it without knowing for whom. The Talmud: the eighth day was a joy before the Holy One, blessed is He, like the day heaven and earth were created.
How Midrash Tanchuma (Buber) and Talmud, Megillah explain it
Midrash Tanchuma (Buber) And it was on the eighth day
This is what Scripture says: "Whoever keeps a commandment will know no evil thing" (Kohelet / Ecclesiastes 8:5). Who was this? Aharon, as it says: "And you shall not go out from the entrance of the Tent of Meeting for seven days" (Vayikra / Leviticus 8:33) and "at the entrance of the Tent of Meeting you shall stay day and night seven days" (Vayikra / Leviticus 8:35). Moshe said to them: keep mourning for seven days. "And keep the charge of the Eternal" (there): Moshe said to them, keep the charge of the Eternal, for so the Holy One, blessed is He, kept seven days of mourning before He brought the Flood.
And how do we know He mourned? It says: "And the Eternal regretted that He had made man on the earth, and He was grieved in His heart" (Bereshit / Genesis 6:6). "Was grieved" (וַיִּתְעַצֵּב) is said only of mourning. For of David too it says: "And the victory that day turned into mourning for all the people, for the people heard that day: the king is grieved (נֶעֱצַב) for his son" (Shmuel II / II Samuel 19:3). And Ezra said to Israel, when they were weeping each with his brother and each with his son: "Go, eat rich food and drink sweet drinks, and do not grieve (אַל תֵּעָצֵבוּ), for the joy of the Eternal is your strength" (Nechemyah / Nehemiah 8:10). That is why it says "and He was grieved in His heart". At that hour the Holy One, blessed is He, kept seven days of mourning before He brought the Flood, as it says: "And it was after seven days, and the waters of the Flood were upon the earth" (Bereshit / Genesis 7:10).
And so Moshe says to Aharon the priest and his sons: as the Holy One, blessed is He, mourned for His world before He brought the Flood, so you keep mourning before the loss touches you. And they kept it and did not know for what. Why? "Whoever keeps a commandment will know no evil thing, and a wise heart knows time and judgment."
Talmud, Megillah And it was on the eighth day
But it is written: "And it was on the eighth day." And it was taught: on that day there was joy before the Holy One, blessed is He, as on the day heaven and earth were created. It is written here: "And it was on the eighth day", and it is written there: "And it was morning: one day" (Bereshit / Genesis 1:5).
Takeaway
The words "was grieved" (וַיִּתְעַצֵּב), "is grieved" (נֶעֱצַב) and "do not grieve" (אַל תֵּעָצֵבוּ) come from one root (עצב). From the verses about David and Ezra the midrash concludes that this word is used for mourning.
The end of the verse, "and a wise heart knows time and judgment", is Kohelet / Ecclesiastes 8:5. The printed midrash gives Kohelet / Ecclesiastes 8:1 here.
The loss they did not know of was the death of Nadav (Nadab) and Avihu (Abihu), two sons of Aharon, on that same eighth day (Vayikra / Leviticus 10:1–2).
The Talmud says: wherever it says "and it was" (וַיְהִי), it is a sign of trouble. And it asks: what of the eighth day, which was a joy? And it answers: on that day Nadav and Avihu died (Megillah 10b).
The eighth day and the day of creation are joined by one word, "and it was" (וַיְהִי): it opens both verses.