Musnad Ahmad 1230
It was narrated from Hudain bin al-Mundhir bin al-Harith bin Wa’lah that al-Waleed bin `Uqbah led the people in Fajr prayer and he prayed four rak`ahs, Then he turned to them and said:
Shall I give you more?! The matter was referred to ‘Uthman (رضي الله عنه) , who ordered that he be flogged. ‘Ali said to al-Hasan bin ‘Ali  Get up, O Hasan, and flog him. He said: What does that have to do with you? ‘Ali (رضي الله عنه) said: Rather you are incapable and weak; get up, O Abdullah bin Jafar and flog him. So ‘Abdullah bin Ja`far got up and flogged him, and `Ali kept count. When he reached forty, he said to him; Stop. Then he said: The Messenger of Allah (ﷺ) gave forty lashes for drinking alcohol, Abu Bakr gave forty lashes, as did ʼUmar at the beginning of his caliphate, Then `Umar completed it, making it eighty. And all of it is Sunnah.
حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، أَنْبَأَنَا سَعِيدُ بْنُ أَبِي عَرُوبَةَ، عَنْ عَبْدِ اللَّهِ الدَّانَاجِ، عَنْ حُضَيْنِ بْنِ الْمُنْذِرِ بْنِ الْحَارِثِ بْنِ وَعْلَةَ، أَنَّ الْوَلِيدَ بْنَ عُقْبَةَ، صَلَّى بِالنَّاسِ الصُّبْحَ أَرْبَعًا ثُمَّ الْتَفَتَ إِلَيْهِمْ فَقَالَ أَزِيدُكُمْ فَرُفِعَ ذَلِكَ إِلَى عُثْمَانَ فَأَمَرَ بِهِ أَنْ يُجْلَدَ فَقَالَ عَلِيٌّ لِلْحَسَنِ بْنِ عَلِيٍّ قُمْ يَا حَسَنُ فَاجْلِدْهُ قَالَ وَفِيمَ أَنْتَ وَذَاكَ فَقَالَ عَلِيٌّ بَلْ عَجَزْتَ وَوَهَنْتَ قُمْ يَا عَبْدَ اللَّهِ بْنَ جَعْفَرٍ فَاجْلِدْهُ فَقَامَ عَبْدُ اللَّهِ بْنُ جَعْفَرٍ فَجَلَدَهُ وَعَلِيٌّ يَعُدُّ فَلَمَّا بَلَغَ أَرْبَعِينَ قَالَ لَهُ أَمْسِكْ ثُمَّ قَالَ ضَرَبَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي الْخَمْرِ أَرْبَعِينَ وَضَرَبَ أَبُو بَكْرٍ أَرْبَعِينَ وَعُمَرُ صَدْرًا مِنْ خِلَافَتِهِ ثُمَّ أَتَمَّهَا عُمَرُ ثَمَانِينَ وَكُلٌّ سُنَّةٌ‏.‏