Allah's Messenger (ﷺ) judged that the unmarried person who was guilty of illegal sexual…

Sahih al-Bukhari Book 86 Hadith 59

Sahih al-Bukhari #6833

Limits and Punishments set by Allah (Hudood) 86:59

Narrated Abu Huraira:

Allah's Messenger (ﷺ) judged that the unmarried person who was guilty of illegal sexual intercourse be exiled for one year and receive the legal punishment (i.e., be flogged with one-hundred stripes) .

Chapter: Unmarried should be flogged and exiled

Grade: Sahih