Rashi on Genesis
חלילה לך FAR BE IT FROM THEE — It is a profanation (חולין) of Yourself. People will say, “That is what He usually busies Himself with: He destroys every one, righteous and wicked alike” —and thus did You indeed do to the generation of the Flood and to that of the dispersal of nations (Midrash Tanchuma, Vayera 8).
Rashbam on Genesis
השופט כל הארץ, a reference to the angels whom G’d had dispatched as His representatives, לא יעשה משפט, “will not mete out fair justice?”
Sforno on Genesis
והיה כצדיק כרשע, subject to chance, being in the wrong place at the wrong time.