The Messenger of Allah سبحانه وتعالى (peace be upon him and his family) said: "It is not permissible for a ruler who believes in Allah سبحانه وتعالى and the Last Day to administer more than ten lashes except in the case of a legal punishment (hadd)."