וַיֹּ֤אמֶר יְהוָה֙ לְנֹ֔חַ בֹּֽא־אַתָּ֥ה וְכָל־בֵּיתְךָ֖ אֶל־הַתֵּבָ֑ה כִּֽי־אֹתְךָ֥ רָאִ֛יתִי צַדִּ֥יק לְפָנַ֖י בַּדּ֥וֹר הַזֶּֽה׃
И сказал Господь Ною: 'Приди и весь дом твой в ковчег; Ибо Я видел праведных перед Мной в этом поколении.
The Midrash of Philo
Why does he say: "Enter thou and all thy house into the ark, because I have seen that thou art a just man before me in that generation?" (Genesis 7:1).