The Prophet ﷺ gave a beating with palm-branches and sandals for drinking wine and Abu Bakr gave lashes. When ‘Umar came to power, he called upon people and said to them: The people are living now near watering placing, and, according to Musaddad’s version, “near villages and watering places, so what do you say about the punishment for (drinking) wine? ‘Abd al-Rahman b. ‘Awf said: We think that you should prescribe the lightest punishment. So he fixed eight lashes for it. Abu Dawud said: It has also been transmitted by Ibn Al 'Arubah from Qatadah from the Prophet ﷺ to the effect that he gave a beating forty times with palm branches and sandals. And Shu'bah narrated it from Qatadah on the authority of Anas from Prophet ﷺ. This version has: He gave a beating with two palm-branches about forty times.
أَنَّ النَّبِيَّ ﷺ جَلَدَ فِي الْخَمْرِ بِالْجَرِيدِ وَالنِّعَالِ وَجَلَدَ أَبُو بَكْرٍ ؓ أَرْبَعِينَ فَلَمَّا وَلِيَ عُمَرُ دَعَا النَّاسَ فَقَالَ لَهُمْ إِنَّ النَّاسَ قَدْ دَنَوْا مِنَ الرِّيفِ وَقَالَ مُسَدَّدٌ مِنَ الْقُرَى وَالرِّيفِ فَمَا تَرَوْنَ فِي حَدِّ الْخَمْرِ فَقَالَ لَهُ عَبْدُ الرَّحْمَنِ بْنُ عَوْفٍ نَرَى أَنْ تَجْعَلَهُ كَأَخَفِّ الْحُدُودِ فَجَلَدَ فِيهِ ثَمَانِينَ