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.
إِنَّهُ قَدِمَ نَاسٌ مِنْ أَهْلِ الْكُوفَةِ عَلَى عُثْمَانَ فَأَخْبَرُوهُ بِمَا كَانَ مِنْ أَمْرِ الْوَلِيدِ أَيْ بِشُرْبِهِ الْخَمْرَ فَكَلَّمَهُ عَلِيٌّ فِي ذَلِكَ فَقَالَ دُونَكَ ابْنَ عَمِّكَ فَأَقِمْ عَلَيْهِ الْحَدَّ فَقَالَ يَا حَسَنُ قُمْ فَاجْلِدْهُ قَالَ مَا أَنْتَ مِنْ هَذَا فِي شَيْءٍ وَلِّ هَذَا غَيْرَكَ قَالَ بَلْ ضَعُفْتَ وَوَهَنْتَ وَعَجَزْتَ قُمْ يَا عَبْدَ اللهِ بْنَ جَعْفَرٍ فَجَعَلَ عَبْدُ اللهِ يَضْرِبُهُ وَيَعُدُّ عَلِيٌّ حَتَّى بَلَغَ أَرْبَعِينَ ثُمَّ قَالَ أَمْسِكْ أَوْ قَالَ كُفَّ جَلَدَ رَسُولُ اللهِ ﷺ أَرْبَعِينَ وَأَبُو بَكْرٍ أَرْبَعِينَ وَكَمَّلَهَا عُمَرُ ثَمَانِينَ وَكُلٌّ سُنَّةٌ