وَلُوطًا ءَاتَيْنَٰهُ حُكْمًا وَعِلْمًا وَنَجَّيْنَٰهُ مِنَ ٱلْقَرْيَةِ ٱلَّتِى كَانَت تَّعْمَلُ ٱلْخَبَٰٓئِثَ إِنَّهُمْ كَانُوا۟ قَوْمَ سَوْءٍ فَٰسِقِينَ · وَأَدْخَلْنَٰهُ فِى رَحْمَتِنَآ إِنَّهُۥ مِنَ ٱلصَّٰلِحِينَ
Wa Lūṭan ātaynāhu ḥukman wa ʿilman wa najjaynāhu mina'l-qaryati'llatī kānat taʿmalu'l-khabāʾith, innahum kānū qawma sawʾin fāsiqīn · Wa adkhalnāhu fī raḥmatinā innahu mina'ṣ-ṣāliḥīn
"And to Lot We gave judgement and knowledge, and We delivered him from the town that did foul deeds. They were indeed a bad people, given to transgression. · And We admitted him into Our mercy. He was among the righteous."
The same two words, five verses apart. It is a repetition that can be verified within the sūra, and I shall treat it at the seventy-ninth verse, because there it does a decisive work.
Ḥukm — the root ح-ك-م: to separate, to decide; the concrete sense of the root is to rein in (ḥakama — the bit of a horse). ʿIlm — to know. Their being given together conveys that judgement and knowledge are two distinct things.
ٱلْخَبَٰٓئِث — root خ-ب-ث: what is bad, foul, loathsome. Its opposite is ṭayyib. And the word is plural and definite: al-khabāʾith. The verse does not say what the act was — the condition of this people is set out in detail elsewhere in the Qurʾān. This sūra does not give it; nor do I.
And a point of word order: the town is qualified by a verbal clause: kānat taʿmalu'l-khabāʾith. That is, the town is named not by its name but by what it did — the same pattern as qaryatin kānat ẓālima in the sūra's eleventh verse. It is a repetition that can be verified within the sūra.
قَوْمَ سَوْءٍ — and this expression occurs twice in the sūra: 74 (Lot's people) and 77 (Noah's people). The same two words, for two different peoples. It is a countable fact.
وَأَدْخَلْنَٰهُ فِى رَحْمَتِنَا — and this sentence too occurs twice in the sūra: 75 (Lot) and 86 (Ishmael, Idrīs and Dhū'l-Kifl). In exactly the same wording.
And the preposition fī is worth recording: adkhalnāhu fī raḥmatinā — "We admitted him into Our mercy". Mercy is conceived as a place: something one enters.