Bereshit / Genesis 6:9
אֵלֶּה תּוֹלְדֹת נֹחַ נֹחַ אִישׁ צַדִּיק תָּמִים הָיָה בְּדֹרֹתָיו אֶת־הָאֱלֹהִים הִתְהַלֶּךְ־נֹחַ׃
This is the story of Noach (Noah). Noach was a righteous man, whole in his generations. With the Almighty Noach walked.
Pshat פְּשָׁט
Righteous by his generation
Rashi: since the Torah mentioned Noach, it told of his merit, for "the memory of the righteous is a blessing". Another explanation: the main offspring of the righteous are their good deeds. "In his generations" some sages expound as praise: in a generation of the righteous he would have been more righteous still. Others as reproach: by his generation he is righteous, but in the generation of Avraham (Abraham) he would have counted for nothing. Of Avraham it says "walked before Me", of Noach "with the Almighty": Noach needed support, Avraham walked on his own. Sforno: "story" is his affairs and the events of his days, "righteous" in deed, "whole" in understanding. Noach walked in the Almighty's ways doing good to others, and rebuked his generation, as the sages write, and Berossus the Chaldean too.
How Rashi and Sforno explain it
Remez רֶמֶז
Noach, Noach, Noach
Kitzur Ba'al HaTurim finds four hints. "This is the story" stands four times without "and": of the heavens, of Noach, of Shem, of Yaakov (Jacob), and each one discards what came before it: chaos, the earlier generations, the sons of Cham and Yefet, Esav (Esau). "Noach" is in the verse three times: he saw three worlds, or he is one of three who each saved three, like Daniel and Job, or he is pleasing to heaven and to creatures, to the upper and the lower, in this world and in the next. "Was" (הָיָה) by the count of its letters is 20: he was whole in all twenty generations from Adam to Avraham (Abraham). And the last letters of the words "The Almighty Noach walked" give "wise" (חָכָם): "and the wise one takes souls".
How Kitzur Ba'al HaTurim explain it
Drash דְּרָשׁ
Vinegar in the cellar and balsam among graves
Rabbi Yehuda: in his generations he was righteous, but in the generation of Moshe (Moses) or Shmuel (Samuel) he would not have been. In a street of the blind the one-eyed is called sighted. Like a cellar where all the barrels turned sour, and the one that is only souring is praised: there is none better. Rabbi Nechemya: if he was righteous in his generations, in the generation of Moshe all the more. Like a flask of balsam, tightly closed, among graves, and still its scent spreads. Like a maiden in a street of harlots, of whom no bad word went out. And on "with the Almighty he walked": a nobleman has two sons, to the younger he says "walk with me", to the elder "walk before me". Or: the king's friend is sinking in mud, and the king says "walk with me", while Avraham (Abraham) lit the king's way through a window, and the king said "come and light before me". Rabbi Yochanan: like a shepherd watching his flock. Reish Lakish: like a prince before whom the elders walk.
How Bereshit Rabbah explain it
Sod סוֹד
The two spirits of the righteous
The Zohar reads "whole was he in his generations" so: "his generations" are those who came out of him, he made them all whole and was himself the most whole of all. "Whole" because he was born circumcised, as Avraham (Abraham) was told: "walk before me and be whole". And on "Noach, Noach" twice: every righteous man in the world has two spirits, one in this world and one in the world to come. So with all the righteous: "Moshe, Moshe", "Yaakov, Yaakov", "Avraham, Avraham", "Shmuel, Shmuel", "Shem, Shem". Except Yitzchak (Isaac): when he was laid on the altar, his soul of this world went out, and when of Avraham it was said "blessed is he who revives the dead", the soul of the world to come returned into him. Therefore the Holy One, blessed is He, joined his name in a lifetime only with Yitzchak: he counted as dead.
How Zohar explain it