Abdul-Rahman bin al-Azhar (may Allah be pleased with him) said: A drinker was brought to the Messenger of Allah (peace and blessings be upon him) while he was at Hunayn. He threw dust in his face, then ordered his Companions, and they beat him with their sandals and whatever was in their hands, until he said to them: "Stop." So they stopped. Then the Messenger of Allah (peace and blessings be upon him) passed away. Then Abu Bakr (may Allah be pleased with him) gave forty lashes for wine; then Umar (may Allah be pleased with him) gave forty in the early part of his rule, then eighty at the end of his caliphate; then Uthman (may Allah be pleased with him) applied both punishments, eighty and forty; then Mu'awiyah (may Allah have mercy on him) fixed the prescribed punishment at eighty.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17542