I heard the Prophet ﷺ saying, "Do not flog anyone more than ten stripes except if he is involved in a crime necessitating Allah's legal Punishment." (Using translation from Bukhārī 6850)
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «لَا يُجْلَدُ فَوْقَ عَشَرَةِ أَسْوَاطٍ فِي غَيْرِ حَدٍّ مِنْ حُدُودِ اللهِ»