Sahih Bukhari
Punishment of Disbelievers at War with Allah and His Apostle
Volume: 008 / Book Number: 082 / Hadith Number: 832
Narrated 'Abdur-Rahman bin Jabir:
On the authority of others, that the Prophet said, "No Punishment exceeds the flogging of the ten stripes, except if one is guilty of a crime necessitating a legal punishment prescribed by Allah."