It was at the height of these crimes and sins that Allah revealed to Prophet Lot that he should summon the people to give up their indecent behavior, but they were so deeply sunk in their immoral habits that they were deaf to Lot's preaching. Swamped in their unnatural desires, they refused to listen, even when Lot warned them of Allah's punishment. Instead, they threatened to drive him out of the city if he kept on preaching.
Almighty Allah revealed: The people of Lot (those dwelt in the towns of Sodom in Palestine) belied the Messengers when their brother Lot said to them: 'Will you not fear Allah and obey Him? Verily! I am a trustworthy Messenger to you. So fear Allah, keep your duty to Him, and obey me. No reward do I ask of you for it (my Message of Islamic Monotheism), my reward is only from the Lord of the 'Alamin (mankind, jinn and all that exists). Go you in unto the males of the 'Alamin (mankind), and leave those whom Allah has created for you to be your wives? Nay, you are a trespassing people!"
They said: "If you cease not, 0 Lot! Verily, you will be one of those who are driven out!"
He said: "I am, indeed, of those who disapprove with severe anger and fury your (this evil) action (of sodomy). My Lord! Save me and my family from what they do."
So We saved him and his family, all, - except an old woman (his wife) among those who remained behind. Surah 26: 160-171