The Prophet (peace and blessings be upon him) said: "In discretionary punishment (ta'zir), do not strike more than ten lashes."