"And the two angels came to Sodom in the evening" (Genesis 19:1), etc. Let our master teach us: How many forms of death were handed over to the court? Four, and these are they: stoning, burning, slaying by the sword, and strangulation. And which is the most severe? Our Rabbis said: stoning. Rabbi Shimon ben Yochai says: burning, for it was given to the daughter of a priest who committed harlotry. See how severe harlotry is, that it is punished by burning. Rabbi {Shimon} [Yehoshua] ben Levi said in the name of Bar Kappara: For everything the Holy One, blessed be He, grants atonement, except for harlotry, as it is said, "None who touches her shall go unpunished" (Proverbs 6:29). Rabbi Yehoshua bar Nechemiah said: The Sodomites too, because they broke out into harlotry, were made liable to burning, as it is said, "And the Lord rained upon Sodom and upon Gomorrah brimstone and fire" (Genesis 19:24). Once they were found liable, the Holy One, blessed be He, said to the angels: Why are you standing? Go and destroy them. Immediately they descended and carried out the command of their Creator. From where do we know this? From what they read on the matter, "And the two angels came to Sodom" (Genesis 19:1).
Why the Sodomites Were Sentenced to Fire for Their Sin
Midrash Tanchuma Buber, Vayera 14:1
ויבאו שני המלאכים סדומה בערב וגו'. ילמדנו רבינו כמה מיתות נמסרו לבית דין, ארבעה, ואלו הן, סקילה שרפה הרג וחנק, ואיזו היא החמורה, רבותינו אמרו סקילה, ר' שמוען בן יוחי אומר שרפה, שניתנה לבת כהן שזינתה, ראה כמה קשה הזנות שהיא בשרפה, ר' (שמעון) [יהושע] בן לוי אמר משום בר קפרא על הכל הקב"ה מכפר חוץ מזנות, שנאמר לא ינקה כל הנוגע בה (משלי ו כט), אמר ר' יהושע בר נחמיה אף הסדומים לפי שפרצו בזנות נתחייבו שרפה, שנאמר וה' המטיר על סודם ועל עמורה גפרית ואש (בראשית יט כד). כיון שנתחייבו אמר הקב"ה למלאכים מה אתם עומדים לכו והשחיתו, מיד ירדו ועשו קילווסין (פי' ציווי) של בוראן, מנין ממה שקראו בענין ויבאו שני המלאכים סדומה.