Quran 21:74 — The Prophets (Al-Anbya')
As for Lot, we granted him wisdom and knowledge, and we saved him from the community that practiced abominations; they were wicked and evil people.
[21:73] We made them imams who guided in accordance with our commandments, and we taught them how to work righteousness, and how to observe the Contact Prayers (Salat) and the obligatory charity (Zakat).* To us, they were devoted worshipers.
[21:75] We admitted him into our mercy, for he was righteous.