Месорат Хашас к Авот 5:2

עֲשָׂרָה דוֹרוֹת מֵאָדָם וְעַד נֹחַ, לְהוֹדִיעַ כַּמָּה אֶרֶךְ אַפַּיִם לְפָנָיו, שֶׁכָּל הַדּוֹרוֹת הָיוּ מַכְעִיסִין וּבָאִין עַד שֶׁהֵבִיא עֲלֵיהֶם אֶת מֵי הַמַּבּוּל. עֲשָׂרָה דוֹרוֹת מִנֹּחַ וְעַד אַבְרָהָם, לְהוֹדִיעַ כַּמָּה אֶרֶךְ אַפַּיִם לְפָנָיו, שֶׁכָּל הַדּוֹרוֹת הָיוּ מַכְעִיסִין וּבָאִין, עַד שֶׁבָּא אַבְרָהָם וְקִבֵּל עָלָיו שְׂכַר כֻּלָּם:

Десять поколений от Адама до Ноаха. Чтобы сообщить нам, как долго Он страдает. За все эти поколения они продолжали злить Его—пока Он не принес на них воды потопа. [Вы тоже не удивляетесь, что Он все эти годы страдал от идолопоклонников, что они порабощали Его детей, потому что Он был тем более идолопоклонникам (десяти) поколений от Адама до Ноаха—пока они не были уничтожены во время потопа.] Десять поколений от Ноаха до Авраама. Чтобы сообщить нам, как долго Он страдает. За все эти поколения они продолжали злить Его—пока Авраам не пришел и не взял на себя награду всех. [Он сделал добрые дела, соответствующие тому, что все они должны были сделать—поэтому они все были спасены в его заслугах. И точно так же, как он взял на себя иго мицвота в этом мире снова и против всех них, он получил, что мир воздастся за всех и против них. На каждого человека есть две акции, одна в Ган Идене; другой, в геинном. Если он заслуживает похвалы, он берет свою долю и долю своего соседа (злодея) в Ган Идене. Если он виновен, он берет свою долю и долю своего соседа (цаддика) в Гехинном.]

Avot DeRabbi Natan

There were ten generations from Adam until Noah.
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.”