Bereshit / Genesis 18:25 · Pshat
חָלִלָה לְּךָ מֵעֲשֹׂת כַּדָּבָר הַזֶּה לְהָמִית צַדִּיק עִם־רָשָׁע וְהָיָה כַצַּדִּיק כָּרָשָׁע חָלִלָה לָּךְ הֲשֹׁפֵט כָּל־הָאָרֶץ לֹא יַעֲשֶׂה מִשְׁפָּט׃
Far be it from You to do such a thing, to put the righteous to death with the wicked, so that the righteous should be like the wicked. Far be it from You! Shall the Judge of all the earth not do justice?"
Pshat פְּשָׁט
Shall the Judge not do justice
The Eternal has told Avraham that Sedom will be destroyed. And Avraham, who has just called himself a servant, begins to argue: "Shall the Judge of all the earth not do justice?" What is he asking for?
Rashi: "chalilah" means "unworthy of You": people will say He sweeps everyone away, as in the Flood. The hei in "hashofet" (הֲשֹׁפֵט) makes the phrase a question of wonder. Sforno: if the whole earth were judged by its majority, it would have to be destroyed for ever, since most people are wicked. So the judgement of all the earth cannot go by majority alone.
How Rashi and Sforno explain it
Rashi Far be it from You
"Chalilah" (חָלִלָה): "it is profane (חֻלִּין) for You". People will say: this is His trade, He sweeps away everyone, righteous and wicked. So You did to the generation of the Flood and to the generation of the dispersion.
Such a thing.
Neither this nor anything like it.
Far be it from You.
In the world to come.
Shall the Judge of all the earth.
The hei of "hashofet" (הֲשֹׁפֵט) is pointed with a chataf patach: it is a question of wonder. Shall the one who judges not do true justice?
Sforno So that the righteous should be like the wicked
This could happen if some righteous man is found among the wicked.
The Judge of all the earth.
For You are the Judge of all the earth: if You judge all of it by the majority, You will surely destroy it for ever, since most people are wicked.
Takeaway
The generation of the dispersion (דּוֹר הַפַּלָּגָה) is the builders of the tower of Bavel (11:1–9).
A hei at the start of a word (הֲ) pointed with chataf patach makes the phrase a question: הֲשֹׁפֵט, "shall the judge?"
This is the first argument in the Torah between a man and the Creator. Avraham speaks boldly, yet calls himself "dust and ashes" (18:27).