Abdur Rahman bin Azhar (may Allah be pleased with him) narrated that I saw the Prophet (ﷺ) in the year of Hunain asking about the departure of Khalid bin Walid (may Allah be pleased with him), so I also started walking ahead of the Prophet (ﷺ) asking about Khalid’s camel-litter, until the Prophet (ﷺ) reached him and he was in an injured state. Then a drunkard was brought to the Prophet (ﷺ), so he said: “Beat him.” The Companions (may Allah be pleased with them) beat him with their hands, sandals, and the edges of their garments, and threw dust on him. Then the Prophet (ﷺ) said: “Rebuke him (say harsh words to him).” So the Companions rebuked him, then the Prophet (ﷺ) let him go. Abdur Rahman bin Azhar said: Then when Abu Bakr’s (may Allah be pleased with him) caliphate came, he asked those who had participated in the beating during the time of the Prophet (ﷺ), and they informed him of forty lashes, so Abu Bakr (may Allah be pleased with him) prescribed forty lashes for drinking wine during his lifetime. Then Umar (may Allah be pleased with him) also kept it at forty, until when people began to drink wine excessively, he consulted and then prescribed eighty lashes.
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1562
Hadith Takhrijصحيح من غير هذا الطريق : اخرجه ابو داود، الحدود، باب اذا تتابع في شرب الخمر (4487)، (4488)، (4489) واحمد : 4 / 88 والنسائي في الكبرى (5283) ، (5281) - وصححه الحاكم: (4/ 374، 375)۔
It is narrated from Thawr bin Zayd Al-Daylami that Umar bin Khattab (may Allah be pleased with him) sought advice regarding the one who drinks alcohol. Ali bin Abi Talib (may Allah be pleased with him) said: "We think that the one who drinks alcohol should be given eighty (80) lashes, because when he drinks alcohol, he becomes intoxicated, and when he becomes intoxicated, he speaks nonsense (utters incoherent words), and when he speaks nonsense, he fabricates slander (false accusations)." Or as he said. Then Umar (may Allah be pleased with him) gave eighty (80) lashes to the one who drank alcohol.
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1563
Hadith Takhrijاسناده ضعیف، فان ثورا لم يلق عمر اخرجه البيهقي : 320 ، 321 و في المعرفة السنن والآثار له (5246) - وعبدالرزاق (13542) والنسائي في الكبرى (5289) ۔ ومالك في الموطا، الاشربة، باب ماجاء في حد الخمر۔