Husayn bin Munzir Abu Sasan reported,

Humran reported, "I was present with Uthman bin Affan when Walid was brought before him, having led the morning prayer with two units, after which he said, 'Shall I add more for you?'Two men testified against him. One of them, Humran, testified that Walid had drunk wine, while the other testified that he had seen him vomiting it.Uthman said, "He would not have vomited it had he not drunk it."Then he said, "Ali, get up and flog him."Ali said, "Hasan, get up and flog him."Hasan replied, "Let the one who enjoys its sweetness bear its bitterness." It seemed he was displeased with the task.So Ali said, "Abdullah bin Jafar, get up and flog him." He flogged him while Ali counted, until he reached forty.Then Ali said, "Stop." He then said, "The Prophet ﷺ flogged forty lashes, Abu Bakr flogged forty, and Umar flogged eighty. Each is sunnah, but this one is more beloved to me."

Azami 7010

Sahih

عن حصين بن المنذر أبي ساسان قال

شهدت عثمان بن عفان وأتي بالوليد، قد صلى الصبح ركعتين. ثم قال: أزيدكم؟ فشهد عليه رجلان: أحدهما حمران أنه شرب الخمر. وشهد آخر أنه رآه يتقيأ. فقال عثمان: إنه لم يتقيأ حتى شربها. فقال: يا علي، قم فاجلده، فقال علي: قم يا حسن فاجلده، فقال الحسن: ول حارها من تولى قارها- فكأنه وجد عليه- فقال: يا عبد الله بن جعفر، قم فاجلده، فجلده وعلي يعد، حتى بلغ أربعين. فقال: أمسك. ثم قال: جلد النبي ﷺ أربعين، وجلد أبو بكر أربعين، وعمر ثمانين. كل سنة وهذا أحب إلي.

الأعظمي 7010صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Legal punishments
Chapter
Drinking wine and the hadd punishment for it
Section
Punishment of the wine drinker as discretionary discipline
Numbering
Jami al-Kamil 7010 (2nd edition)
Azami 7010