That the Messenger of Allah (ﷺ) said: "No one is to be lashed more than ten lashes except for a legal punishment among Allah's punishments."
Jami` at-Tirmidhi Book 17, Hadith 47