Language:
كتاب الحدود
86  
Limits and Punishments set by Allah (Hudood)
(32)
Chapter: Unmarried should be flogged and exiled
(32)
باب الْبِكْرَانِ يُجْلَدَانِ وَيُنْفَيَانِ
Sahih al-Bukhari 6833

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) .

حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَضَى فِيمَنْ زَنَى وَلَمْ يُحْصَنْ بِنَفْىِ عَامٍ بِإِقَامَةِ الْحَدِّ عَلَيْهِ‏.‏
Reference : Sahih al-Bukhari 6833
In-book reference : Book 86, Hadith 58
USC-MSA web (English) reference : Vol. 8, Book 82, Hadith 819
  (deprecated numbering scheme)