It is narrated from ‘Ubadah bin Samit (may Allah be pleased with him) that the Prophet (ﷺ) said: “Learn from me, learn from me. Allah Almighty has prescribed a way for women. If an unmarried man commits fornication with an unmarried woman, each of them is to receive one hundred lashes and exile for one year. And if a married man and a married woman commit adultery, then one hundred lashes and stoning (to death).”
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1569
Hadith Takhrijاخرجه مسلم، الحدود، باب حد الزني (1690)۔