Lut (peace be upon him) was a prophet and a contemporary of Ibrahim who was sent to a people committing an indecency never before seen in the worlds, approaching men in lust instead of women (7:80-81). He warned them and called them to fear Allah, but they answered only by threatening to expel him and mocking his call to purity (7:82, 27:56).
Lut persisted, reminding them that he was a trustworthy messenger who asked no reward (26:161-164). Yet his people continued in their transgression and rejected his guidance.
Angels came first to Ibrahim with glad tidings, then went on to Lut, who was distressed for their sake until they revealed they were messengers of Allah sent to destroy the wrongdoing town (11:69-70, 11:77-81). They told him to depart by night with his family and not to look back, except that his wife would remain behind among those destroyed (11:81).
At daybreak the punishment came: the town was overturned and a rain of stones of baked clay fell upon them (11:82-83). Allah saved Lut and his family, except his wife, by His grace, and left the ruined town as a clear sign for people who reason (29:32-35, 37:133-136).