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."
— Sahih Bukhari, Volume 8, Book 82: Punishment of Disbelievers at War with Allah and His Apostle, Hadith #832