(Gen. 20:1:) "Then Abraham journeyed from there to the land of the Negev." This is what Scripture says (Job 14:18): "But a falling mountain crumbles away." This is Sodom and its companion cities, as it is said (Gen. 19:23-24): "The sun had risen upon the earth... and the LORD rained down" <upon Sodom and upon Gomorrah brimstone and fire>. R. Samuel bar Nahmani said: Woe to the wicked, for they cause a place of mercy to become a place of retribution. For David offers praise (Ps. 148:1): "Hallelujah! Praise the LORD from the heavens" — yet there is no fire there, and no hail, and no brimstone. R. Aristi our colleague said (Ps. 96:6): "Honor and majesty are before Him." Where is the place of retribution? From the earth, as it is said (Ps. 148:7): "Praise the LORD from the earth, you sea monsters and all deeps." Behold, it is from the earth. Then how is it written (Gen. 19:24): "And the LORD rained down" <brimstone and fire... > "from the heavens"? Rather, this is to teach you that from the beginning, when they were created, the Holy One, blessed be He, decreed concerning them and said to them: According to what you shall see the creatures doing, so shall it be done to them. A parable: To what is the matter comparable? To a heater of gold. One who sought hot water would find it within it; one who sought burning coals would take them out of it. So too the Holy One, blessed be He, said to the heavens: According to what you see, do — for the Sodomites and for the children of Esau, brimstone and fire; for Israel, dew, as it is said (Micah 5:6): "And the remnant of Jacob shall be in the midst of many peoples like dew." The Holy One, blessed be He, said: What need have I of these? Immediately He overturned them, as it is said (Gen. 19:25): "And He overturned those cities." Hence it is said (Job 14:18): "But a falling mountain crumbles away, and the rock is removed from its place." And there is no "rock" but Abraham, as it is said (Isa. 51:1): "Look unto the rock from which you were hewn" — who journeyed from his place, as it is said (Gen. 20:1): "Then Abraham journeyed from there."
Why Fire Fell on Sodom but Dew on Israel from Heaven
Midrash Tanchuma Buber, Vayera 23:1
ויסע משם אברהם ארצה הנגב (בראשית כ א). זש"ה ואולם הר נופל יבול (איוב יד יח), זו סדום וחברותיה, שנאמר השמש יצא על הארץ וגו' וה' המטיר (שם כג כד), אמר ר' שמואל בר נחמני אוי להם לרשעים שהם גורמים למקם של רחמים, ליעשות מקום של פורענות, שהרי דוד מקלס הללויה הללו את ה' מן השמים (תהלים קמח א), ואין שם לא אש ולא ברד ולא גפרית. אמר ר' אריסטי חברינו הוד והדר לפניו (שם צו ו), היכן הוא מקום של פורענות, מן הארץ, שנאמר הללו את ה' מן הארץ תנינים וכל תהומות (שם קמח ז), הרי מן הארץ, והיאך כתיב וה' המטיר וגו' מן השמים, אלא ללמדך מתחלה שנבראו גזר עליהם הקב"ה ואמר להם לפי מה שתהיו רואים את הבריות כך היו נעשים להם, משל למה הדבר דומה למולייר של זהב, בקש מים חמין הוא מוצא מתוכו, בקש גחלים מוציא מתוכו, כך אמר הקב"ה לשמים לפי מה שאתם רואים עשו, לסדומים ולבני עשו גפרית ואש, לישראל טל, שנאמר והיה שארית יעקב בקרב עמים רבים כטל (מיכה ה ו). אמר הקב"ה מה אני צריך לאלו, מיד הפך אותם, שנאמר ויהפך את הערים האל וגו' (בראשית יט כה), הוי אומר ואולם הר נופל יבול וצור יעתק ממקומו, ואין צור אלא אברהם, שנאמר הביטו אל צור חוצבתם וגו' (ישעיה נא א), שנסע ממקומו, שנאמר ויסע משם אברהם וגו'.