חָלִ֨לָה לְּךָ֜ מֵעֲשֹׂ֣ת ׀ כַּדָּבָ֣ר הַזֶּ֗ה לְהָמִ֤ית צַדִּיק֙ עִם־רָשָׁ֔ע וְהָיָ֥ה כַצַּדִּ֖יק כָּרָשָׁ֑ע חָלִ֣לָה לָּ֔ךְ הֲשֹׁפֵט֙ כָּל־הָאָ֔רֶץ לֹ֥א יַעֲשֶׂ֖ה מִשְׁפָּֽט׃
חלילה דיר צו טאָן אַזאַ זאַך, צו טײטן דעם אומשולדיקן מיט דעם שולדיקן, אַז דער אומשולדיקער זאָל זײַן אַזױ װי דער שולדיקער; חלילה דיר! זאָל דער ריכטער פֿון דער גאַנצער ערד ניט טאָן גערעכטיקײט?
Rashi
חלילה לך 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).
Ibn Ezra
Far be it: [This term refers to] something that is impossible. Some understand the word to be related to 'hollow', i.e. something that is empty.
Rashbam
השופט כל הארץ, a reference to the angels whom G’d had dispatched as His representatives, לא יעשה משפט, “will not mete out fair justice?”
Siftei Chakhamim
צוטריטלעך נאָר פֿאַר פּרעמיום־מיטגלידערRashi
כדבר הזה ANYTHING LIKE THIS THING — neither this nor anything like it (Genesis Rabbah 49:10).