7:1

וַיֹּאמֶר יְהוָה לְנֹחַ בֹּא־אַתָּה וְכָל־בֵּיתְךָ אֶל־הַתֵּבָה כִּי־אֹתְךָ רָאִיתִי צַדִּיק לְפָנַי בַּדּוֹר הַזֶּה׃

And the Eternal said to Noach (Noah), "Come, you and all your household, into the ark, for you I have seen righteous before Me in this generation.

Bereshit 7:1

וַיֹּאמֶר יְהוָה לְנֹחַ

Bereshit / Genesis 7:1

וַיֹּאמֶר יְהוָה לְנֹחַ בֹּא־אַתָּה וְכָל־בֵּיתְךָ אֶל־הַתֵּבָה כִּי־אֹתְךָ רָאִיתִי צַדִּיק לְפָנַי בַּדּוֹר הַזֶּה׃

And the Eternal said to Noach (Noah), "Come, you and all your household, into the ark, for you I have seen righteous before Me in this generation.

Pshat פְּשָׁט

Part of the praise to his face

Rashi: it says "righteous", not "righteous, whole". From here: part of a man's praise is said to his face, and all of it not to his face. Sforno: "you I have seen righteous", not your household. Therefore "you and all your household": for your sake alone I will save them. Kli Yakar: why is this said only now, and not at the command to build the ark? Then there was still hope that the generation would repent, and Metushelach was alive. The Eternal waited the seven days of mourning for him, as he had waited the hundred and twenty years, and when people stayed in their rebellion, he said "you I have seen righteous in this generation": salvation depends on what a man is in the generation he stands in. And "righteous" means he did not take what was not his, when the generation's sentence was sealed for robbery. "Before me": the generation of the flood robbed less than the worth of a peruta and was acquitted by judges, but Noach is clean before Heaven too.

How Rashi, Sforno, and Kli Yakar explain it

Remez רֶמֶז

The name of mercy

Ramban: the Eternal told Noach that by the attribute of mercy he would save him and his household. Here is a hint of Noach's offering: he will turn to it, and by the merit of the offering the world will no longer be destroyed. Therefore the Special Name is here, for with offerings "the Almighty" is never said. The Netziv adds: in everything before the flood and after it is written "the Almighty", only here the Four-Letter Name. And "all your household" is not the sons, already spoken of, but the servants and cattle for the needs of the house, not for upholding the world. Wherever the world is spoken of, it is "the Almighty", Judge and Creator. Here it is mercy towards Noach and special providence for the good of the righteous man, hence "and the Eternal said" and the reason: "for you I have seen righteous".

How Ramban and Haamek Davar explain it

Drash דְּרָשׁ

Come in and go out

Rabbi Tanchuma and other sages: no man loves a fellow of his craft, but a sage loves a fellow of his craft, as Rabbi Chiya and Rabbi Hoshaya loved each other. And the Holy One, blessed is He, loves a fellow of his craft: "for the Eternal is righteous, he loves righteousness" is Noach, to whom he said "come, you". The second midrash: "to everything there is a time": Noach had a time to enter the ark and a time to go out. Like a steward who went away and set another in his place, and on returning says to him "go out". But Noach did not agree to go out: shall I go out and be fruitful and multiply for a curse? Until the Omnipresent swore to him that he would bring no more flood: "for this is to me as the waters of Noach: as I swore".

How Bereshit Rabbah explain it

Sod סוֹד

A guest by leave of the master

Rabbi Shimon: why everywhere "the Almighty", and here "the Eternal", the supernal Name of mercy? The secret is in what we learned: it is not proper for a woman to receive a guest except by leave of her husband. So Noach wished to enter the ark and join with it, and it was not fitting until the master of the ark gave him leave: "come, you and all your household, into the ark". Therefore here the Eternal is named, the master of the ark. From here too the rules: do not receive a guest if you suspect he is a sinner, but only if he is righteous in your eyes, "for you I have seen righteous". And if leave is given to him alone, let him not bring in those with him, but here it says "you and all your household": leave is given to all.

How Zohar explain it