Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:6773Ḥafṣ b. ʿUmar > Hishām > Qatādah > Anas

The Prophet ﷺ beat a drunk with palm-leaf stalks and shoes. And Abu Bakr gave (such a sinner) forty lashes.  

البخاري:٦٧٧٣حَدَّثَنَا حَفْصُ بْنُ عُمَرَ حَدَّثَنَا هِشَامٌ عَنْ قَتَادَةَ عَنْ أَنَسٍ

أَنَّ النَّبِيَّ ﷺ ح حَدَّثَنَا آدَمُ حَدَّثَنَا شُعْبَةُ حَدَّثَنَا قَتَادَةُ عَنْ أَنَسِ بْنِ مَالِكٍ ؓ أَنَّ النَّبِيَّ ﷺ ضَرَبَ فِي الْخَمْرِ بِالْجَرِيدِ وَالنِّعَالِ وَجَلَدَ أَبُو بَكْرٍ أَرْبَعِينَ