<P> The Battle of Siddim is described in Genesis 14: 1--17 . Sodom and Gomorrah's political situation is described when Lot had encamped in Sodom's territory . At this time, "the men of Sodom (were) wicked and sinners before the Lord exceedingly". Sodom was ruled by King Bera while Gomorrah was ruled by King Birsha . Their kingship, however, was not sovereign, because all of the river Jordan plain was under Elamite rule for 12 years . The kingdom of Elam was ruled by King Chedorlaomer . In the 13th year of subjugation to Elam, the five kings of the river Jordan plain allied to rebel against Elamite rule . These kings included those of Sodom and Gomorrah as well as their neighbors: King Shinab of Admah, King Shemeber of Zeboiim, and the unnamed king of Bela (later called Zoar). </P> <P> In response, Elam's King Chedorlaomer, gathered additional forces from Shinar, Ellasar and Goyim to suppress this rebellion from the cities of the plain . They waged war in the Vale of Siddim in the 14th year . The battle was brutal with heavy losses in the cities of the plain, with their resultant defeat, Genesis 14: 10 . Sodom and Gomorrah were spoiled of their goods, and captives were taken, including Lot . The tide of war turned when Lot's uncle, Abraham, gathered an elite force that slaughtered King Chedorlaomer's forces in Hobah, north of Damascus . The success of his mission freed the cities of the plain from under Elam's rule . </P> <P> The story of the judgment of Sodom and Gomorrah is told in Genesis 18--19 . Three men, thought by most commentators to have been angels appearing as men, came to Abraham in the plains of Mamre . After the angels received the hospitality of Abraham and Sarah, "the Lord" revealed to Abraham that he would confirm what he had heard against Sodom and Gomorrah, "and because their sin is very grievous". </P> <P> In response, Abraham inquired of the Lord if he would spare the city if 50 righteous people were found in it, to which the Lord agreed he would not destroy it for the sake of the righteous yet dwelling therein . Abraham then inquired of God for mercy at lower numbers (first 45, then 40, then 30, then 20, and finally at 10), with the Lord agreeing each time . Two angels were sent to Sodom to investigate and were met by Abraham's nephew Lot, who convinced the angels to lodge with him, and they ate with Lot . </P>

Who were the angels at sodom and gomorrah
find me the text answering this question