Sura Al-Anbiyaa

21:74

وَلُوطًا ءَاتَيْنَٰهُ حُكْمًۭا وَعِلْمًۭا وَنَجَّيْنَٰهُ مِنَ ٱلْقَرْيَةِ ٱلَّتِى كَانَت تَّعْمَلُ ٱلْخَبَٰٓئِثَ ۗ إِنَّهُمْ كَانُوا۟ قَوْمَ سَوْءٍۢ فَٰسِقِينَ

OCH [MINNS] Lot! Vi gav honom visdom och kunskap, och Vi räddade honom från [hans] folk, som begick onda och skamliga handlingar; de var fördärvade människor, som trotsade [Gud].

Tafsir 21:74

ِAnd to Lot I granted the ability to judge fairly between disputing parties, together with sound knowledge of his religion. I also saved him from the punishment I sent upon the people of his village (Sodom) who were involved in immorality. Indeed, they were corrupt people who deviated from the worship of their Lord.