Sayyidunā Sulaymān عَـلَيْـهِ الـسَّـلاَم once asked Satan, ‘What sin is most disliked by Allah عَزَّوَجَلَّ?’ Iblīs said, ‘The sin which is most disliked by Allah عَزَّوَجَلَّ is the sodomy of a man with a man and fulfilment of (sexual) desire of a woman by a woman.’ (Rūḥ-ul-Bayān, pp. 197, vol. 3)
One of the admonitory Hādīš of the Beloved and Blessed Prophet صَلَّى اللهُ تَعَالٰى عَلَيْهِ وَاٰلِهٖ وَسَلَّم mentions in this regard, ‘If a man commits sex with a man, both of them are adulterers, and if a woman commits sex with a woman, in this case both are adulteresses.’ (Sunan-ul-Kubrā, pp. 406, vol. 8, Ḥadīš 17033)
Three categories of homosexuals
It has been reported by Sayyidunā Abū Sa’īd Khudrī رَضِىَ اللهُ تَعَالٰی عَـنْهُ that some people shall be called ‘Lūṭiyyaĥ’ in the last era and they shall be of three types:
1. Those who will only gaze lustfully at the faces of beautiful lads and will talk to them (with the feel of lust).
2. Those who will shake hands with them (out of lust) and will hug them as well.
3. Those who will commit sodomy with them.
The curse of Allah عَزَّوَجَلَّ is upon all of them, except those who will repent of. (So, Allah عَزَّوَجَلَّ will accept their repentance and they shall be secured from the curse.) (Al-Firdaus bimā Šaur-ul-Khaṭṭāb, pp. 315, vol. 2, Ḥadiš 3425)