It is written, "Let it be to fill his belly; He will send upon him His burning anger, and rain it down upon him in His war (belachumo)" (Job 20:23). The retribution that came upon the people of Sodom was to fill their belly, because they had filled their belly with transgressions, with violence, and with robbery. Therefore, when the retribution came upon them, it filled their belly, as it is said, "He will send upon him His burning anger" (ibid.). Rabbi Meir said: Scripture speaks of the overthrow of Sodom. "And rain it down upon him in His lachum" (ibid.), and "the LORD rained down upon Sodom" (Genesis 19:24). What is the meaning of "in His lachum"? It refers to the wars (milchamot) that they waged against the Holy One, blessed be He, as it is said, "And the people of Sodom were evil and sinners against the LORD exceedingly" (Genesis 13:13). "Evil" — one to another; "and sinners" — in open sexual immorality; "against the LORD" — in idolatry; "exceedingly" — in the spilling of blood. Rabbi Judah ha-Levi son of Rabbi Shalom said in the name of Rabbi Yochanan son of Nachman: When Amraphel and his companions came to make war against the people of Sodom, because they had taken Lot captive, Abraham went out against them to war and slew the kings, and they fled, as it is written, "And the Valley of Siddim was full of pits of bitumen, and the king of Sodom fled" (Genesis 14:10). Abraham began to consider: the kings came to make war against the people of Sodom, and the kings fell, yet these fled, as it is said, "and those who remained fled to the mountain" (ibid.). Should you say there were worthy ones among them — the Holy One, blessed be He, said to him, "He shall flee from the iron weapon... he draws it forth, and it comes out of his body... all darkness is hidden away for his treasures" (Job 20:24-26): all darkness is hidden in Sodom, which is to the right of the Land of Israel, as it is said, "And your younger sister who dwells to your right is Sodom and her daughters" (Ezekiel 16:46). What is the meaning of "evil shall consume the survivor in his tent" (Job 20:26)? That even a single survivor who was left from there — the evil of evil consumed the survivor in his tent. And who is this? Edith, the wife of Lot, of whom it is said, "And his wife looked back from behind him, and she became a pillar of salt" (Genesis 19:26).
Why Fire Fell on Sodom and Lot's Wife Became Salt
Midrash Tanchuma Buber, Vayera 8:1
כתיב יהי למלא בטנו ישלח בו חרון אפו וימטר (עליהם) [עלימו] בלחומו (איוב כ כג). פורענות הבאה על סדומים היתה למלא כריסן, לפי שמלאו כריסן מן העבירות מן החמס ומן הגזל, לפיכך כשבאה עליהן הפורענות מילא כריסן, שנא' ישלח (בם) [בו] חרון אפו (שם שם) אמר ר' מאיר על הפיכת סדום הכתב מדבר, וימטר (עליהם) [עלימו] בלחומו (שם), וה' המטיר על סדום, מהו בלחומו, על המלחמות שהיו נלחמים עם הקב"ה שנאמר ואנשי סדום רעים וחטאים לה' מאד (בראשית יג יג), רעים זה לזה, וחטאים בגלוי עריות, לה' בע"ז, מאד בשפיכות דמים. אמר ר' יהודה הלוי ב"ר שלום בשם ר' יוחנן [בר נחמן] בשעה שבאו אמרפל וחביריו להלחם עם הסדומים על ידי ששבו את לוט, יצא אברהם עליהן למלחמה והרג את המלכים וברחו, כמה שכתוב ועמק השדים בארת בארת חמר [וינוסו מלך סדום] (בראשית יד י), התחיל אברהם מהרהר באו המלכים להלחם עם הסדומים, והמלכים נפלו ואלו ברחו, שנאמר והנשארים הרה נסו (שם), שמא תאמר היו בהם כשרים, א״ל הקב״ה יברח מנשק ברזל וגו׳, שלף ויצא מגוה וגו', כל חשך טמון לצפוניו וגו' (איוב כ כד כה כו), כל החשך טמון בסדום, שהיא מימינה של ארץ ישראל, שנאמר ואחותך הקטנה ממך [היושב מימינך סדום ובנותיה] (יחזקאל טז מו), מהו ירע שריד באהלו (איוב שם כו), שאפילו שריד אחד שנשתייר (מהם) [משם] רעת הרעה באהלו, ואיזהו זה עידית אשתו של לוט, שנאמר ותבט אשתו מאחריו ותהי נציב מלח (בראשית יט כו).