Islam teaches that homosexual acts are sinful and punishable by God. This teaching comes not from human beings, but from the Creator of all humans. God tells us in His own words how He punished the people of Lot for their homosexual behaviour.
The story of prophet Lot, on whom be peace, finds mention in several Qur’anic passages, especially Chapter 26:160-175 which reads:
“The people of Lut rejected the apostles. Behold, their brother Lut said to them: “Will ye not fear (God)? “I am to you an apostle worthy of all trust. “So fear God and obey me. “No reward do I ask of you for it: my reward is only from the lord of the Worlds. “Of all the creatures in the world, will ye approach males, “And leave those whom God has created for you to be your mates? Nay, ye are a people transgressing (all limits)!” They said: “If thou desist not, O Lut! thou wilt assuredly be cast out!”