Language:
كتاب الحدود
86  
Limits and Punishments set by Allah (Hudood)
(3)
Chapter: Whoever ordered that the legal punishment was to be carried out at home
(3)
باب مَنْ أَمَرَ بِضَرْبِ الْحَدِّ فِي الْبَيْتِ
Sahih al-Bukhari 6774

Narrated `Uqba bin Al-Harith:

An-Nu`man or the son of An-Nu`man was brought to the Prophet (ﷺ) on a charge of drunkenness. So the Prophet ordered all the men present in the house, to beat him. So all of them beat him, and I was also one of them who beat him with shoes.

حَدَّثَنَا قُتَيْبَةُ، حَدَّثَنَا عَبْدُ الْوَهَّابِ، عَنْ أَيُّوبَ، عَنِ ابْنِ أَبِي مُلَيْكَةَ، عَنْ عُقْبَةَ بْنِ الْحَارِثِ، قَالَ جِيءَ بِالنُّعَيْمَانِ أَوْ بِابْنِ النُّعَيْمَانِ شَارِبًا، فَأَمَرَ النَّبِيُّ صلى الله عليه وسلم مَنْ كَانَ بِالْبَيْتِ أَنْ يَضْرِبُوهُ‏.‏ قَالَ فَضَرَبُوهُ، فَكُنْتُ أَنَا فِيمَنْ ضَرَبَهُ بِالنِّعَالِ‏.‏
Reference : Sahih al-Bukhari 6774
In-book reference : Book 86, Hadith 3
USC-MSA web (English) reference : Vol. 8, Book 81, Hadith 765
  (deprecated numbering scheme)