Ibn Abbas (may Allah be pleased with them both) says that the Prophet (peace and blessings be upon him) said: "Whomever you find doing the deed of the people of Lut, kill both the doer and the one to whom it is done."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17019
Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says that the Prophet (peace and blessings be upon him) said: "Whoever commits sodomy, or (gives) himself (for it), or commits adultery with one of his mahram women, or commits bestiality with an animal, kill him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17020
Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) was asked about the one who commits the deed of the people of Lut, and he said: The highest building in the town should be sought out, and he should be thrown down from it headfirst, then stones should be hurled after him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17024
The previous narration.
Imam al-Shafi'i (may Allah have mercy on him) says that the position of Ibn Abbas (may Allah be pleased with them both), of Ibn al-Musayyib (may Allah have mercy on him), and my own as well, is that the sodomite, whether married or unmarried, is to be killed or stoned.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17027
Safwan bin Sulaym (may Allah have mercy on him) says that Sayyiduna Khalid bin al-Walid (may Allah be pleased with him) wrote to Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him) that there are some people here among the Arabs who are taken by men in marriage as women are taken; tell me, what should I do? Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him) gathered the noble Companions (may Allah be pleased with them), and on that day the harshest word was spoken by Sayyiduna Ali (may Allah be pleased with him). He said: This is a sin that only one nation committed, and you also know what Allah did to them. Our view is that they should be burned with fire. All the noble Companions (may Allah be pleased with them) agreed upon this, and then Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him) wrote to Sayyiduna Khalid bin al-Walid (may Allah be pleased with him): Burn them.
This narration is mursal.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17028
Ata' (may Allah have mercy on him) says: I was with Sayyiduna Ibn al-Zubayr (may Allah be pleased with him) when seven offenders arrested for sodomy were brought; four were married and three unmarried. He ordered concerning the four: Take them away and stone them. And he had the hadd of lashes carried out on the three in the mosque. Sayyiduna Ibn Umar and Sayyiduna Ibn Abbas (may Allah be pleased with them) were also present.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17030
Ibrahim al-Nakha'i (may Allah have mercy on him) says that the punishment of the sodomite is that of adultery: if he is married, stoning; otherwise, he is to be lashed.
The Shaykh (may Allah have mercy on him) says that, according to what al-Rabi' bin Sulayman (may Allah have mercy on him) thought, Imam al-Shafi'i (may Allah have mercy on him) had also reverted to this view.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17032
Sayyiduna Abu Musa al-Ash'ari (may Allah be pleased with him) says that the Prophet (peace and blessings be upon him) said: "When a man does it with a man, they are both adulterers; and when a woman does it with a woman, they are both adulteresses."
The Shaykh said: As for this Muhammad bin Abd al-Rahman, I do not know him, and it is munkar (denounced) with this chain.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 17033