Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said: In the time of the Messenger, drinkers were beaten with hands, sandals and sticks. In the time of Sayyiduna Abu Bakr al-Siddiq (may Allah be pleased with him), wine-drinking increased, so he fixed 40 lashes. Then Sayyiduna Umar al-Faruq (may Allah be pleased with him) also kept to this, until a man (may Allah be pleased with him) from among the earliest Muhajirun drank wine. When he ordered that the prescribed punishment be applied to him, he said: Why are you applying the prescribed punishment to me? Between me and you is the Book of Allah. He asked: In which part of the Book is it that I should not apply the prescribed punishment to you? He said: Allah Almighty says: "There is no sin upon those who believe and do righteous deeds for what they eat." [Surah al-Ma'idah: 93] I took part with the Prophet (peace and blessings be upon him) in Badr, Uhud and the Trench. Sayyiduna Umar al-Faruq (may Allah be pleased with him) said: Is there no one to answer him? Then Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said: This verse was revealed for those who came before, that there is no sin upon them for what they had done before wine was forbidden; and for the rest it is a proof against them, for Allah Almighty revealed this verse for them: "O you who believe, wine, gambling, stone altars and divining arrows are an abomination." [Surah al-Ma'idah: 90] So if you are among the people of faith and do righteous deeds, then you must fear Allah and do good, and Allah has forbidden wine. Then Sayyiduna Umar al-Faruq (may Allah be pleased with him) asked the people: What is your opinion? Sayyiduna Ali al-Murtada (may Allah be pleased with him) said: If he drinks wine he will become intoxicated, then he will rave, and then he will also slander; therefore his punishment is 80 lashes. So Sayyiduna Umar al-Faruq (may Allah be pleased with him) ordered 80 lashes.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17543