Come on, let's touch on taboo topics. Homosexuality was, is and will be. I'll reverse the sequence of quotes. I take the human judgment first and if you have the patience to read me, I quote the words of Quran on homosexuality at the end.
Rajta, nyúljunk tabu témákhoz. Homoszexualitás volt, van és lesz. Megfordítom a sorrendet. Előre veszem az emberi megítélést és ha türelmetek van végigolvasni, a végére helyezem a Korán szavait a homoszexualitással kapcsolatban.
Undoubtedly the sin of homosexuality is one of the worst sins; indeed, it is one of the major sins (kaba’ir) that Allah has forbidden. Allah destroyed the people of Lot (peace be upon him) with the most terrifying kinds of punishment because they persisted in their sin and made this evil action commonplace and acceptable among themselves. Allah says (interpretation of the meaning): [Quotes Quran 11:82-83, Quran 11:83, and Quran 54:37].
The same applies to the sin of lesbianism. There is no doubt among the fuqaha’ that lesbianism is haram and is a major sin, as stated by al-Hafiz Ibn Hajar (may Allah have mercy on him). (AlMawsoo’ah al-Fiqhiyyah, part 24, p. 251). (However, the above Quranic quotes refer to the people of Lot).
With regard to the specific type of punishment mentioned in the question – stoning to death – this kind of punishment is for the adulterer who is married. The sharia punishment for the crime of homosexuality is execution by the sword.
Well, I have quoted the present-day Sharia practice of remote areas, where no legal harmonization has been taken place for centuries.
The Quran mentions the deed of Lot's people (peace be upon him), which is a confirmation of the words of the Bible:
We also (sent) Lut: He said to his people: "Do ye commit lewdness such as no people in creation (ever) committed before you? (Quran 7:80)
His story is biblical. He was a nephew of Abraham, and was sent as a Prophet and warner to the people of Sodom and Gomorrah, cities utterly destroyed for their unspeakable sins. They cannot be exactly located, but it may be supposed that they were somewhere in the plain cast of the Dead Sea. The story of their destruction is told in the 19th chapter of Genesis. Two angels in the shape of handsome young men came to Lot in the evening and became his guests by night. The inhabitants of Sodom in their lust for unnatural crime invaded Lut's house but were repulsed. In the morning, the angels warned Lut to escape with his family. "Then the Lord rained upon Sodom and upon Gomorrah brimstone and fire from the Lord out of heaven; and He overthrew those cities, and all the plain, and all the inhabitants of the cities, and that which grew upon the ground. But his wife looked back from behind him, and she became a pillar of salt." (Gen. 19:24-26). Note that Lut's people are the people to whom he is sent on a mission. He was not one of their own brethren, as was Salih or Shu'aib. But he looked upon his people as his brethren (50:13), as a man of God always does.
"For ye practise your lusts on men in preference to women : ye are indeed a people transgressing beyond bounds." (Quran 7:81)
And we rained down on them a shower (of brimstone): Then see what was the end of those who indulged in sin and crime! (Quran 7:84)
Let's see what we find in the Hadith:
Narrated Abdullah ibn Abbas:
The Prophet (peace be upon him) said: “If you find anyone doing as Lot's people did, kill the one who does it, and the one to whom it is done.“
Collection Sunan Abu Dawud
Dar-us-Salam reference Hadith 4462
Ahmad Hasan translation Hadith 4447
The same point is supported by the following references:
Sahih Bukhari 7:72:774, Sahih Bukhari 8:82:820, Sunan Abu Dawud 38:4448, Sunan Abu Dawud 31:4008, Sunan Abu Dawud 11:2169, Sunan Abu Dawud 32:4087, Sunan Abu Dawud 32:4088, Tirmidhi 1:152, Tirmidhi 1457, Sunan Ibn Majah 3:9:1903, Sunan Ibn Majah 3:9:1904, Sunan Ibn Majah 3:20:2561, Sunan Ibn Majah 3:20:2562, Al-Muwatta 41:11
And now back to the Qur'an:
If any of your women are guilty of lewdness, Take the evidence of four (Reliable) witnesses from amongst you against them; and if they testify, confine them to houses until death do claim them, or Allah ordain for them some (other) way. (Quran 4:15)
Most commentators understand this to refer to adultery or fornication; in that case they consider that the punishment was altered by the later verse, 24:2. But I think it refers to unnatural crime between women, analogous to unnatural crime between men in 4:16 below; because, 1. No punishment is specified here for the man, as would be the case where a man was involved in the crime; 2. The word, al laati, the purely feminine plural of al lati, is used for the parties to the crime; 3. The punishment is indefinite; see the next note but one. To protect the honor of women, stricter evidence is required, i.e., the evidence of four instead of the usual two witnesses. It is virtually impossible to prove according to the Sharia. It is the same for adultery (see 24:4.).
If two men among you are guilty of lewdness, punish them both. If they repent and amend, Leave them alone; for Allah is Oft-returning, Most Merciful. (Quran 4:16)
The next verses of the Quran deal with repentance and forgiveness, so that is the context in which Quran deals with homosexuality and lesbianism. Quran judges it as sin, because the lewdness is sin. But there is not mentioned such strong sanction as the death sentence performed by humans. If I consider the context, repentance and forgiveness are just as important aspects as sanctions.
We are not blind, deaf, so we can see that the Islamic Ummah abounds in homosexuality, whether hidden or overtly. Its evaluation in every society is different. No age can come when homosexuality will be not considered as sin according to the Quran. Inexplicably it is. However, we cannot agree with the over-dimensioned human judgments.
Left side:Shah Abbas of Iran with a page (1627).
Right side: Ottoman illustration depicting a young man used for group sex (from Sawaqub al-Manaquib), 19th century. Reference: https://en.wikipedia.org/wiki/LGBT_in_Islam