TT #24 · Parshas Noach · Second Aliyah · Passuk 7:10
And it came to pass after the seven days that the waters of the Flood were upon the earth.
Torah Temimah points to Sanhedrin 108b (the seven days before the Flood).
Sefaria — related Yerushalmi material
“After the seven days” — What is the nature of these seven days? That the Holy One, blessed be He, watched over (mourned for) His world for seven days; and from here [we learn] the seven days of mourning.
Category E — Analogy / symbolism / archetypal learning.
Method — The baraisa derives the seven-day mourning period for a person from Hashem’s own seven-day mourning over the world before the Flood.
Textual trigger — “Ki leyamim od shiv’ah” and the statement that the Holy One mourned the world for seven days.
Parallel / contrast — Divine mourning over the world is used as the archetype for human shiv’ah; the practice is learned by analogy.
The seven days before the Flood serve as a model (or support) for the seven days of mourning observed for the dead.