Bereshit / Genesis 18:25 · Remez
חָלִלָה לְּךָ מֵעֲשֹׂת כַּדָּבָר הַזֶּה לְהָמִית צַדִּיק עִם־רָשָׁע וְהָיָה כַצַּדִּיק כָּרָשָׁע חָלִלָה לָּךְ הֲשֹׁפֵט כָּל־הָאָרֶץ לֹא יַעֲשֶׂה מִשְׁפָּט׃
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?"
Remez רֶמֶז
"Chalilah" twice
Avraham says "chalilah" (חָלִלָה), "far be it", twice. And the word "kadavar" (כַּדָּבָר), "such a thing", has the letter kaf (כּ), "like". The teachers see a hint both in the repetition and in the letter.
Lekach Tov: "chalilah" comes from "chulin" (חֻלִּין), "profane", and "chilul" (חִלּוּל), "desecration": such a deed would desecrate the Name of Heaven. The kaf of "kadavar" adds: neither this, nor anything like it, nor even less. Tanchuma Buber: the two "chalilah" are this world and the world to come: You do not set judgement aside in either.
How Midrash Lekach Tov and Midrash Tanchuma (Buber) explain it
Midrash Lekach Tov Far be it from You
Rabbi Abba bar Kahana said: Avraham said before the Holy One, blessed is He: Master of the world, it is profane (חֻלִּין) for You to do so, for You are holy and Your deeds are holy. And "chalilah" is said twice. Rabbi Acha said: there is a desecration of the Name of Heaven in this. "To do such a thing": what is "such" (כַּדָּבָר)? Rabbi Abba bar Kahana said: neither this, nor anything like it, nor anything less than it.
Midrash Tanchuma (Buber)
Another explanation. Why did he see fit to say "far be it from You" twice? Avraham said: far be it from You, for You do not set aside the judgement of any creature, neither in this world nor in the world to come. Therefore it says: "far be it from You", "far be it from You".
Takeaway
The word חָלִלָה is related to חֻלִּין, "ordinary, profane", and to חִלּוּל, "desecration".
Kaf (כּ) at the start of a word means "like". So כַּדָּבָר is "like this thing", that is, anything similar too.
The world to come (עוֹלָם הַבָּא) is what the Sages call the life of the soul after this world and the world after the end of days.