"And the Vale of Siddim was full of slime pits" (Genesis 14:10). For the four kings made there pits and filled them with dust and clay, so that if the five kings should come to make war with you, they would fall there. And so there fell there the king of Sodom and the king of Gomorrah; and an angel came and brought out the king of Sodom, and the remaining ones fled to the mountain — concerning the king of Admah and the king of Zeboiim and the king of Bela, who did not fall there.
The Four Kings Dig Tar Pits in the Vale of Siddim
Midrash Aggadah, Genesis 14:10
ועמק השדים בארות בארות חמר. שעשו שם הד' מלכים בארות ומלאם עפר וחמר, כדי שאם יבאו חמשת המלכים לעשות עמכם מלחמה שיפלו שמה, וכן נפלו שמה מלך סדום ומלך עמורה, ובא מלאך והוציא מלך סדום, והנשארים הרה נסו, על מלך אדמה ועל מלך צבוים ומלך בלע שלא נפלו שמה: