Sodom and Gomorrah
(יז) וַֽיהֹוָ֖ה אָמָ֑ר הַֽמְכַסֶּ֤ה אֲנִי֙ מֵֽאַבְרָהָ֔ם אֲשֶׁ֖ר אֲנִ֥י עֹשֶֽׂה׃ (יח) וְאַ֨בְרָהָ֔ם הָי֧וֹ יִֽהְיֶ֛ה לְג֥וֹי גָּד֖וֹל וְעָצ֑וּם וְנִ֨בְרְכוּ ב֔וֹ כֹּ֖ל גּוֹיֵ֥י הָאָֽרֶץ׃ (יט) כִּ֣י יְדַעְתִּ֗יו לְמַעַן֩ אֲשֶׁ֨ר יְצַוֶּ֜ה אֶת־בָּנָ֤יו וְאֶת־בֵּיתוֹ֙ אַחֲרָ֔יו וְשָֽׁמְרוּ֙ דֶּ֣רֶךְ יְהוָ֔ה לַעֲשׂ֥וֹת צְדָקָ֖ה וּמִשְׁפָּ֑ט לְמַ֗עַן הָבִ֤יא יְהוָה֙ עַל־אַבְרָהָ֔ם אֵ֥ת אֲשֶׁר־דִּבֶּ֖ר עָלָֽיו׃ (כ) וַיֹּ֣אמֶר יְהוָ֔ה זַעֲקַ֛ת סְדֹ֥ם וַעֲמֹרָ֖ה כִּי־רָ֑בָּה וְחַ֨טָּאתָ֔ם כִּ֥י כָבְדָ֖ה מְאֹֽד׃ (כא) אֵֽרֲדָה־נָּ֣א וְאֶרְאֶ֔ה הַכְּצַעֲקָתָ֛הּ הַבָּ֥אָה אֵלַ֖י עָשׂ֣וּ ׀ כָּלָ֑ה וְאִם־לֹ֖א אֵדָֽעָה׃
(17) Now the LORD had said, “Shall I hide from Abraham what I am about to do, (18) since Abraham is to become a great and populous nation and all the nations of the earth are to bless themselves by him? (19) For I have singled him out, that he may instruct his children and his posterity to keep the way of the LORD by doing what is just and right, in order that the LORD may bring about for Abraham what He has promised him.” (20) Then the LORD said, “The outrage of Sodom and Gomorrah is so great, and their sin so grave! (21) I will go down to see whether they have acted altogether according to the outcry that has reached Me; if not, I will take note.”
אשר אני עושה בִּסְדוֹם. לֹא יָפֶה לִי לַעֲשׂוֹת דָּבָר זֶה שֶׁלֹּא מִדַּעְתּוֹ. אֲנִי נָתַתִּי לוֹ אֶת הָאָרֶץ הַזֹּאת, וַחֲמִשָּׁה כְּרַכִּין הַלָּלוּ שֶׁלּוֹ הֵן, שֶׁנֶּאֱמַר: גְּבוּל הַכְּנַעֲנִי מִצִּידֹן בֹּאֲכָה סְדֹמָה וַעֲמֹרָה וְגוֹ' (בראשית י'). קָרָאתִי אוֹתוֹ אַבְרָהָם – אַב הֲמוֹן גּוֹיִם, וְאַשְׁמִיד אֶת הַבָּנִים וְלֹא אוֹדִיעַ לָאָב, שֶׁהוּא אוֹהֲבִי?

אשר אני עושה WHAT I AM DOING in Sodom. It is not proper for Me to do this thing without his knowledge. I gave him this land and these five cities therefore are his — as it is said, (10:19) “And the territory of the Canaanites was from Sidon … as thou goest towards Sodom and Gommorah etc.” I called him Abraham, the father of a multitude of nations; should I destroy the children without informing the father who loves me? (Genesis Rabbah 49:2)

Etz Hayim on 18:19 This is a verse of supreme importance in the Book of Genesis. God promises to have a special relationship with Abraham and his children, so that they will be inspired to do what is right and just. The negotiations over the fate of Sodom is one result of that relationship and the commitment to what is right and just. "The descendants of Abraham are characterized by three traits: a capacity for kindness, a sense of honor, and a commitment to do what is right." (Talmud)

Rashi on 18:20-21

"And the Lord said" to Abraham. For He did as He Had said, that God would not hide from him.....

"I will go down now..." This teaches judges that they should not decide capital punishment cases unless they see it (for example, they must go to the site and investigate the matter.)

(כב) וַיִּפְנ֤וּ מִשָּׁם֙ הָֽאֲנָשִׁ֔ים וַיֵּלְכ֖וּ סְדֹ֑מָה וְאַ֨בְרָהָ֔ם עוֹדֶ֥נּוּ עֹמֵ֖ד לִפְנֵ֥י יְהוָֽה׃ (כג) וַיִּגַּ֥שׁ אַבְרָהָ֖ם וַיֹּאמַ֑ר הַאַ֣ף תִּסְפֶּ֔ה צַדִּ֖יק עִם־רָשָֽׁע׃ (כד) אוּלַ֥י יֵ֛שׁ חֲמִשִּׁ֥ים צַדִּיקִ֖ם בְּת֣וֹךְ הָעִ֑יר הַאַ֤ף תִּסְפֶּה֙ וְלֹא־תִשָּׂ֣א לַמָּק֔וֹם לְמַ֛עַן חֲמִשִּׁ֥ים הַצַּדִּיקִ֖ם אֲשֶׁ֥ר בְּקִרְבָּֽהּ׃ (כה) חָלִ֨לָה לְּךָ֜ מֵעֲשֹׂ֣ת ׀ כַּדָּבָ֣ר הַזֶּ֗ה לְהָמִ֤ית צַדִּיק֙ עִם־רָשָׁ֔ע וְהָיָ֥ה כַצַּדִּ֖יק כָּרָשָׁ֑ע חָלִ֣לָה לָּ֔ךְ הֲשֹׁפֵט֙ כָּל־הָאָ֔רֶץ לֹ֥א יַעֲשֶׂ֖ה מִשְׁפָּֽט׃
(22) The men went on from there to Sodom, while Abraham remained standing before the LORD. (23) Abraham came forward and said, “Will You sweep away the innocent along with the guilty? (24) What if there should be fifty innocent within the city; will You then wipe out the place and not forgive it for the sake of the innocent fifty who are in it? (25) Far be it from You to do such a thing, to bring death upon the innocent as well as the guilty, so that innocent and guilty fare alike. Far be it from You! Shall not the Judge of all the earth deal justly?”

Midrash Tanchuma, Vayera 8:1

And the two angels came to Sodom at evening (Gen. 19:1). What is written before this verse? And Abraham drew near and said, “Wilt Thou sweep away the righteous with the wicked?” (Gen. 18:23). R. Phinehas the priest, the son of Hama, stated: Certainly the Holy One, blessed be He, does not desire to find any of His creatures guilty, for it is said: I have no pleasure in the death of him that dieth (Ezek. 18:32). Furthermore it says: For Thou are not a God that hath pleasure in wickedness (Ps. 5:4); and: As I live, saith the Lord Eternal, I have no pleasure in the death of the wicked (Ezek. 33:11). What does the Holy One, blessed be He, take pleasure in doing? In proving the righteousness of His creatures, as it is said: The Lord was pleased, for His righteousness’ sake (Isa. 42:21). Proof of this is that even when mankind sins against the Holy One, blessed be He, and provokes him to anger, He relents and seeks an advocate to plead in their behalf. In fact, He suggests the arguments the advocate can employ. Hence, you find that at the time of Jeremiah, He proclaimed: Run ye, to and fro, through the streets of Jerusalem, and see now and know, and seek in the broad places thereof, if ye can find a man. If there be any who doeth justly, that seeketh truth, and I will pardon her (Jer. 5:1).

Midrash Tanchuma, Vayera 8:2

Similarly, after the Sodomites had transgressed, He revealed His intentions to Abraham in order to discover something to their credit, as it is said: And the Lord said: “Shall I hide from Abraham?” Abraham began to plead in their behalf, as it is said: And Abraham drew near and said: “Wilt Thou, indeed, sweep away the righteous with the wicked?” (Gen. 18:23). Drew near is an expression used to indicate prayer, as is said: And it came to pass, at the time of the offering of the evening offering, that Elijah the prophet drew near and said: “O Lord, the God of Abraham, of Isaac, and of Israel” (I Kings 18:36).

You Don't Have To Be Wrong For Me To Be Right, by Brad Hirschfeld includes many gems, including:

“We must never worry that we are not up to the task, although most of us always will. After all, who was Abraham? What was special about him? Nothing! Abraham and Sarah were you and me!”

“People long to be comfortable because they feel unsafe, but if we could help people to feel safe, then they could risk being uncomfortable…. The real issue is how to help people feel safe enough to risk being uncomfortable and uncertain.”

In Abraham’s journey when God says he plans to destroy Sodom, Abraham asks, “Will you sweep away innocent along with guilty?” In essence, Abraham is telling God that if God surrenders a sense of justice and goodness, God isn’t God.”

Etz Hayim on 18:24 "Fifty virtuous people within the city" If a community can produce a subculture of righteous people, and if they involve themselves within the city, trying to change it, then there is hope for the community. But, if the righteous are only isolated individuals who avoid or are barred from being involved in the affairs of the city, there is no hope. One can only extricate them and condemn the rest.

Rashi on 18:25 "Far be it from You" Chalillah. This is unfitting for you. They will say "So is His craft. He inundates everyone, virtuous and wicked." So you did to the Generation of the flood....

Richard Elliot Freedman on 18:25 "Far be it from you to do a thing like this....." This is the first time in the Bible that a human questions (challenges) a divine decision. Moses will take this even further on at least three occasions.

(כו) וַיֹּ֣אמֶר יְהוָ֔ה אִם־אֶמְצָ֥א בִסְדֹ֛ם חֲמִשִּׁ֥ים צַדִּיקִ֖ם בְּת֣וֹךְ הָעִ֑יר וְנָשָׂ֥אתִי לְכָל־הַמָּק֖וֹם בַּעֲבוּרָֽם׃ (כז) וַיַּ֥עַן אַבְרָהָ֖ם וַיֹּאמַ֑ר הִנֵּה־נָ֤א הוֹאַ֙לְתִּי֙ לְדַבֵּ֣ר אֶל־אֲדֹנָ֔י וְאָנֹכִ֖י עָפָ֥ר וָאֵֽפֶר׃ (כח) א֠וּלַי יַחְסְר֞וּן חֲמִשִּׁ֤ים הַצַּדִּיקִם֙ חֲמִשָּׁ֔ה הֲתַשְׁחִ֥ית בַּחֲמִשָּׁ֖ה אֶת־כָּל־הָעִ֑יר וַיֹּ֙אמֶר֙ לֹ֣א אַשְׁחִ֔ית אִם־אֶמְצָ֣א שָׁ֔ם אַרְבָּעִ֖ים וַחֲמִשָּֽׁה׃ (כט) וַיֹּ֨סֶף ע֜וֹד לְדַבֵּ֤ר אֵלָיו֙ וַיֹּאמַ֔ר אוּלַ֛י יִמָּצְא֥וּן שָׁ֖ם אַרְבָּעִ֑ים וַיֹּ֙אמֶר֙ לֹ֣א אֶֽעֱשֶׂ֔ה בַּעֲב֖וּר הָאַרְבָּעִֽים׃ (ל) וַ֠יֹּאמֶר אַל־נָ֞א יִ֤חַר לַֽאדֹנָי֙ וַאֲדַבֵּ֔רָה אוּלַ֛י יִמָּצְא֥וּן שָׁ֖ם שְׁלֹשִׁ֑ים וַיֹּ֙אמֶר֙ לֹ֣א אֶֽעֱשֶׂ֔ה אִם־אֶמְצָ֥א שָׁ֖ם שְׁלֹשִֽׁים׃ (לא) וַיֹּ֗אמֶר הִנֵּֽה־נָ֤א הוֹאַ֙לְתִּי֙ לְדַבֵּ֣ר אֶל־אֲדֹנָ֔י אוּלַ֛י יִמָּצְא֥וּן שָׁ֖ם עֶשְׂרִ֑ים וַיֹּ֙אמֶר֙ לֹ֣א אַשְׁחִ֔ית בַּעֲב֖וּר הָֽעֶשְׂרִֽים׃ (לב) וַ֠יֹּאמֶר אַל־נָ֞א יִ֤חַר לַֽאדֹנָי֙ וַאֲדַבְּרָ֣ה אַךְ־הַפַּ֔עַם אוּלַ֛י יִמָּצְא֥וּן שָׁ֖ם עֲשָׂרָ֑ה וַיֹּ֙אמֶר֙ לֹ֣א אַשְׁחִ֔ית בַּעֲב֖וּר הָעֲשָׂרָֽה׃ (לג) וַיֵּ֣לֶךְ יְהוָ֔ה כַּאֲשֶׁ֣ר כִּלָּ֔ה לְדַבֵּ֖ר אֶל־אַבְרָהָ֑ם וְאַבְרָהָ֖ם שָׁ֥ב לִמְקֹמֽוֹ׃
(26) And the LORD answered, “If I find within the city of Sodom fifty innocent ones, I will forgive the whole place for their sake.” (27) Abraham spoke up, saying, “Here I venture to speak to my Lord, I who am but dust and ashes: (28) What if the fifty innocent should lack five? Will You destroy the whole city for want of the five?” And He answered, “I will not destroy if I find forty-five there.” (29) But he spoke to Him again, and said, “What if forty should be found there?” And He answered, “I will not do it, for the sake of the forty.” (30) And he said, “Let not my Lord be angry if I go on: What if thirty should be found there?” And He answered, “I will not do it if I find thirty there.” (31) And he said, “I venture again to speak to my Lord: What if twenty should be found there?” And He answered, “I will not destroy, for the sake of the twenty.” (32) And he said, “Let not my Lord be angry if I speak but this last time: What if ten should be found there?” And He answered, “I will not destroy, for the sake of the ten.” (33) When the LORD had finished speaking to Abraham, He departed; and Abraham returned to his place.

Rashi on 18:32 "Maybe ten will be found there" For fewer than ten, Abraham did not ask. He said, "in the generation of the floor, there were eight, Noah and his sons and their wives, but they did not save the generation."

וילך ה' וגו'. כֵּיוָן שֶׁנִּשְׁתַּתֵּק הַסָּנֵגוֹר הָלַךְ לוֹ הַדַּיָּן:
'וילך ה 'וגו AND THE LORD WENT AWAY — As soon as the counsel for the defence had nothing more to say the Judge took his departure.
וילך ה' המתין שם אברהם ולא הספיק כונתו לנבואה עד שנסתלקה שכינה על הפך ויצא קין מלפני ה':
'וילך ה, Avraham remained in a waiting posture. He had not given up hope to expect further prophetic insights until it became clear to him that G’d’s presence had departed. We cannot help noting the contrast with Genesis 4,16 where the Torah reports the termination of G’d speaking to Kayin as ויצא קין מלפני ה', Kayin terminating the interview with G’d by his being the first one to leave while the presence of G’d had not yet departed.