Language:
كتاب الحدود
86  
Limits and Punishments set by Allah (Hudood)
(42)
Chapter: What punishment may be inflicted on the person so that they may not commit the same sin again, or so that they may learn good manners
(42)
باب كَمِ التَّعْزِيرُ وَالأَدَبُ
Sahih al-Bukhari 6850

Narrated Abu Burda Al-Ansari:

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."

حَدَّثَنَا يَحْيَى بْنُ سُلَيْمَانَ، حَدَّثَنِي ابْنُ وَهْبٍ، أَخْبَرَنِي عَمْرٌو، أَنَّ بُكَيْرًا، حَدَّثَهُ قَالَ بَيْنَمَا أَنَا جَالِسٌ، عِنْدَ سُلَيْمَانَ بْنِ يَسَارٍ إِذْ جَاءَ عَبْدُ الرَّحْمَنِ بْنُ جَابِرٍ فَحَدَّثَ سُلَيْمَانَ بْنَ يَسَارٍ، ثُمَّ أَقْبَلَ عَلَيْنَا سُلَيْمَانُ بْنُ يَسَارٍ فَقَالَ حَدَّثَنِي عَبْدُ الرَّحْمَنِ بْنُ جَابِرٍ، أَنَّ أَبَاهُ، حَدَّثَهُ أَنَّهُ، سَمِعَ أَبَا بُرْدَةَ الأَنْصَارِيَّ، قَالَ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ ‏ "‏ لاَ تَجْلِدُوا فَوْقَ عَشْرَةِ أَسْوَاطٍ إِلاَّ فِي حَدٍّ مِنْ حُدُودِ اللَّهِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6850
In-book reference : Book 86, Hadith 72
USC-MSA web (English) reference : Vol. 8, Book 82, Hadith 833
  (deprecated numbering scheme)