Surah Al-Anbya 21:74
وَلُوطًا ءَاتَيْنَـٰهُ حُكْمًا وَعِلْمًا وَنَجَّيْنَـٰهُ مِنَ ٱلْقَرْيَةِ ٱلَّتِى كَانَت تَّعْمَلُ ٱلْخَبَـٰٓئِثَ ۗ إِنَّهُمْ كَانُوا۟ قَوْمَ سَوْءٍ فَـٰسِقِينَ
And to Lot We gave judgement and knowledge, and We saved him from the city that was committing wicked deeds. Indeed, they were a people of evil, defiantly disobedient.
Translation: Saheeh International
Tafsir
And to Lot We gave judgement the ability to judge decisively between opposing parties and knowledge; and We delivered him from the town which had been committing that is whose inhabitants had been committing deeds of vileness by way of homosexual intercourse hazelnut-hurling and bird-games and other things. …
Excerpt from Tafsir al-Jalalayn, commentary on 21:74, via Quran.com. The reader has the full commentary and 9 more tafsirs.