The Messenger of Allah ﷺ said, "Take it from me, take it from me. Allah has now appointed a way for them. The unmarried man with the unmarried woman, one hundred lashes and banishment for a year. The married man with the married woman, one hundred lashes and stoning."
حدثنا هشيم أخبرنا منصور عن الحسن عن حطان بن عبد الله الرقاشي
قال رسول الله ﷺ خذوا عني خذوا عني قد جعل الله لهن سبيلا البكر بالبكر جلد مائة ونفي سنة والثيب بالثيب جلد مائة والرجم
Its isnad is sahih, its narrators are trustworthy and well known, and Hattan bin Abdullah Raqashi is a trustworthy and well known narrator whose hadith appears in Muslim and the four Sunan works.The hadith was narrated by Muslim 3/1316 no. 1690, Abu Dawud 4/144 no. 4415, and Tirmidhi 4/40 no. 1434, who said it is hasan sahih, and Ibn Majah 2/852 no. 2550, all of them in the chapters on legal punishments. Bayhaqi also narrated it, 8/210, likewise in the chapter on legal punishments.