It was narrated from Abu Burdah bin Niyar that the Messenger of Allah (ﷺ) used to say:
“No one should be given more than ten lashes, except in the case of one of the legal punishments of Allah (SWT).”