Sahih al-Bukhari — Limits and Punishments set by Allah (Hudood) — Hadith No: 6833
Translation
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)