עֲשָׂרָה דוֹרוֹת מֵאָדָם וְעַד נֹחַ, לְהוֹדִיעַ כַּמָּה אֶרֶךְ אַפַּיִם לְפָנָיו, שֶׁכָּל הַדּוֹרוֹת הָיוּ מַכְעִיסִין וּבָאִין עַד שֶׁהֵבִיא עֲלֵיהֶם אֶת מֵי הַמַּבּוּל. עֲשָׂרָה דוֹרוֹת מִנֹּחַ וְעַד אַבְרָהָם, לְהוֹדִיעַ כַּמָּה אֶרֶךְ אַפַּיִם לְפָנָיו, שֶׁכָּל הַדּוֹרוֹת הָיוּ מַכְעִיסִין וּבָאִין, עַד שֶׁבָּא אַבְרָהָם וְקִבֵּל עָלָיו שְׂכַר כֻּלָּם:
Dix générations d'Adam jusqu'à Noach. Pour nous dire combien il souffre. Pendant toutes ces générations, ils ont continué à le mettre en colère—jusqu'à ce qu'il fasse venir sur eux les eaux du déluge. [Vous aussi, ne vous étonnez pas qu'il a longtemps souffert envers les idolâtres toutes ces années qu'ils ont subjugué ses enfants, car il l'était encore plus aux idolâtres des (dix) générations d'Adam jusqu'à Noach.—jusqu'à ce qu'ils aient été détruits dans le déluge.] Dix générations de Noach jusqu'à Abraham. Pour nous dire combien il souffre. Pendant toutes ces générations, ils ont continué à le mettre en colère—jusqu'à ce qu'Abraham vienne et prenne sur lui la récompense de tous. [Il a fait de bonnes actions correspondant à ce que tous auraient dû faire—c'est pourquoi ils furent tous sauvés dans son mérite. Et tout comme il a pris sur lui le joug des mitsvoth dans ce monde au-dessus et contre eux tous, de même il a reçu pour que le monde vienne une récompense sur et contre eux tous. Car chaque homme a deux parts, une dans Gan Eden; l'autre, à Gehinnom. S'il est méritoire, il prend sa part et celle de son voisin (le malfaiteur) dans Gan Eden. S'il est coupable, il prend sa part et celle de son voisin (le tsadik) à Gehinnom.]
Avot DeRabbi Natan
And why was it necessary to bring all those people into the world? This teaches you that even as all those generations continued to anger the Holy Blessed One, He did not bring the flood upon them because of the righteous and saintly among them. And some say that as long as Methuselah was alive, the flood did not come upon the world; and even when Methuselah died, it was still held off for another seven days, as it says (Genesis 7:10), “And it was seven days, [and the waters of the flood were on the earth].” What was happening during those seven days? These were the [seven] days of mourning for that righteous man, who had prevented the punishment. That is why it says, “And it was seven days.”
Another interpretation of, “And it was seven days”: This teaches that the Holy Blessed One fixed a specific time, after 120 years, hoping that they might repent. But they did not, and so it says, “And it was seven days” [i.e., the final seven days of the countdown].
Another interpretation of, “And it was seven days”: This teaches that the Holy Blessed One changed the order of the world [which was created in seven days] for them, and had the sun rise from the west and set in the east, hoping that maybe they would understand and become afraid and repent. But they did not, and so it says, “And it was seven days.”
Another interpretation: This teaches that the Holy Blessed One set a table for them, and gave them a taste of the World to Come, so that they would gather together and say to one another, “Oy, for we have lost all this goodness, and we have caused the destruction of our descendants (from the earth), as it says (Genesis 6:12), “And God saw the earth, and it had been destroyed.”