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).”
It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said: “Do not punish with more than ten whips.”