Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:17537Abū Bakr Aḥmad b. al-Ḥasan And ʾAbū Zakariyyā b. Abū Isḥāq al-Muzakkī > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Maʿmar > al-Zuhrī > ʿAbd al-Raḥman b. Azhar > Raʾayt al-Nabī ﷺ

[Machine] I saw the Prophet ﷺ in the year of Hunayn asking about Khalid ibn al-Walid. So I came in front of him and asked about Khalid ibn al-Walid until he was brought in shackles. The Prophet ﷺ ordered them to strike him, and they struck him with their hands, sandals, and the edges of their garments. They also threw dirt on him. Then the Prophet ﷺ said, "Stop hitting him," and they stopped. Then the Prophet ﷺ sent him. Abu Bakr asked the people who were present at the time of his being struck, and they testified against him forty times. Abu Bakr hit him forty times with a whip. Then Umar (may Allah be pleased with him) continued to hit him in front of the people until people started following him in hitting Khalid. Umar consulted and struck him eighty times. This continued  

البيهقي:١٧٥٣٧أَخْبَرَنَا أَبُو بَكْرٍ أَحْمَدُ بْنُ الْحَسَنِ وَأَبُو زَكَرِيَّا بْنُ أَبِي إِسْحَاقَ الْمُزَكِّي قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنبأ الرَّبِيعُ بْنُ سُلَيْمَانَ ثنا الشَّافِعِيُّ قَالَ أَخْبَرَنَا عَنْ مَعْمَرٍ عَنِ الزُّهْرِيِّ عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَزْهَرَ قَالَ

رَأَيْتُ النَّبِيَّ ﷺ عَامَ حُنَيْنٍ يَسْأَلُ عَنْ رَجُلِ خَالِدِ بْنِ الْوَلِيدِ فَجِئْتُ بَيْنَ يَدَيْهِ أَسْأَلُ عَنْ رَجُلِ خَالِدٍ حَتَّى أَتَاهُ جَذَعًا وَأُتِيَ النَّبِيُّ ﷺ بِشَارِبٍ قَالَ اضْرِبُوهُ فَضَرَبُوهُ بِالْأَيْدِي وَالنِّعَالِ وَأَطْرَافِ الثِّيَابِ وَحَثَوْا عَلَيْهِ التُّرَابَ ثُمَّ قَالَ النَّبِيُّ ﷺ بَكِّتُوهُ فَبَكَتُوهُ ثُمَّ أَرْسَلَهُ قَالَ فَلَمَّا كَانَ أَبُو بَكْرٍ ؓ سَأَلَ مَنْ حَضَرَ ذَلِكَ الْمَضْرُوبَ فَقَوَّمَهُ أَرْبَعِينَ فَضَرَبَ أَبُو بَكْرٍ ؓ فِي الْخَمْرِ أَرْبَعِينَ حَيَاتَهُ ثُمَّ عُمَرُ ؓ حَتَّى تَتَابَعَ النَّاسُ فِي الْخَمْرِ فَاسْتَشَارَ فَضَرَبَهُ ثَمَانِينَ وَكَذَلِكَ  

رَوَاهُ هِشَامُ بْنُ يُوسُفَ الصَّنْعَانِيُّ عَنْ مَعْمَرٍ