Midrash Tanchuma Buber, Bereshit
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
ד"א וירא ה'. זהו שאמר הכתוב בכל מקום עיני ה' צופות רעים וטובים (משלי טו ג), וכתיב (כל מקום עיני ה' משוטטות) [כי ה' עיניו משוטטות בכל הארץ] (דה"ב טז ט), צופות מעשיהם של צדיקים ומעשיהם של רשעים, טובים זה נח ובניו, ורעים אלו דור המבול.
Another interpretation (of Gen. 6:5): AND THE LORD SAW. This text is related (to Prov. 15:3): IN EVERY PLACE THE EYES OF THE LORD ARE OBSERVING THE EVIL AND THE GOOD. It is also written (in II Chron. 16:9): {EVERY PLACE THE EYES OF THE LORD ARE RANGING ABOUT.} [FOR THE EYES OF THE LORD RANGE OVER THE WHOLE EARTH]. They watch the deeds of the righteous and the deeds of the wicked. THE GOOD: These are Noah and his children. AND THE EVIL: These are the generation of the flood.