Sahih Bukhari
Punishment of Disbelievers at War with Allah and His Apostle
Volume: 008 / Book Number: 082 / Hadith Number: 819
Narrated Abu Huraira:
Allah's Apostle 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) .