It was narrated from Huzain Abu Sasan Ar-Raqashi that some people from Koofah came to `Uthman (رضي الله عنه) and told him what Al-Waleed had done - i.e., drinking alcohol. ‘Ali spoke to him about that and he said:
Here is your cousin; carry out the hadd punishment on him. He said: O Hasan, get up and flog him. He said: You are not able to do that, appoint someone else for this. He said: Rather you are too weak and helpless. Get up, O Abdullah bin Ja’far. So `Abdullah began to strike him and ‘Ali counted until he reached forty. Then he said: Stop - or That`s enough. The Messenger of Allah (ﷺ) gave forty lashes and Abu Bakr gave forty lashes,andʻUmar completed it and made it eighty. And all are Sunnah.