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.
tabarani:11051al-Ḥasan b. ʿAlī al-Maʿmarī > Aḥmad b. Ayyūb b. Rāshid al-Baṣrī > ʿAbd al-Aʿlá > Muḥammad b. Isḥāq > Muḥammad b. Kaʿb al-Quraẓī And al-Ḥakam b. ʿUtaybah > Miqsam Wamujāhid > Ibn ʿAbbās

[Machine] When the Messenger of Allah ﷺ stood over Hamzah and saw what had been done to his body, he said, "If it weren't for the sadness that it would cause the women, I would have left him until he was consumed by the stomachs of animals and the beaks of birds, until Allah resurrects him from there." He was saddened by what he saw, so he said, "If I am victorious over the Quraysh, I will mutilate thirty of their men." Allah then revealed in this regard, "So if you punish, then punish with the like of that with which you were afflicted" until His saying, "They are plotting." He then ordered that he be prepared for burial, so his body was prepared facing the qiblah, and the takbir (saying Allahu Akbar) was pronounced over him nine times. Then all the martyrs were gathered around him, and whenever a martyr was brought, he was placed next to Hamzah and the funeral prayer was performed for him and the martyrs together with him. This continued until the funeral prayer was performed for him and the martyrs seventy-two times. Then he stood up and faced his Companions until he saw them, and when the Quran was revealed, the Messenger of Allah ﷺ pardoned and forgave and left the mutilation.  

الطبراني:١١٠٥١حَدَّثَنَا الْحَسَنُ بْنُ عَلِيٍّ الْمَعْمَرِيُّ ثنا أَحْمَدُ بْنُ أَيُّوبَ بْنِ رَاشِدٍ الْبَصْرِيُّ ثنا عَبْدُ الْأَعْلَى عَنْ مُحَمَّدِ بْنِ إِسْحَاقَ حَدَّثَنِي مُحَمَّدُ بْنُ كَعْبٍ الْقُرَظِيُّ وَالْحَكَمُ بْنُ عُتَيْبَةَ عَنْ مِقْسَمِ وَمُجَاهِدٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

لَمَّا وَقَفَ رَسُولُ اللهِ ﷺ عَلَى حَمْزَةَ فَنَظَرَ إِلَى مَا بِهِ قَالَ «لَوْلَا أَنْ تَحْزَنَ النِّسَاءُ مَا غَيَّبْتُهُ وَلَتَرَكْتُهُ حَتَّى يَكُونَ فِي بُطُونِ السِّبَاعِ وَحَوَاصِلِ الطُّيُورِ حَتَّى يَبْعَثَهُ اللهُ مِمَّا هُنَالِكَ» قَالَ وَأَحْزَنَهُ مَا رَأَى بِهِ فَقَالَ «لَئِنْ ظَفَرْتُ بِقُرَيْشٍ لأُمَثِّلَنَّ بِثَلَاثِينَ رَجُلًا مِنْهُمْ» فَأَنْزَلَ اللهُ ﷻ فِي ذَلِكَ {وَإِنْ عَاقَبْتُمْ فَعَاقِبُوا بِمِثْلِ مَا عُوقِبْتُمْ بِهِ} إِلَى قَوْلِهِ {يَمْكُرُونَ} ثُمَّ أَمَرَ بِهِ فَهُيِّءَ إِلَى الْقِبْلَةِ ثُمَّ كَبَّرَ عَلَيْهِ تِسْعًا ثُمَّ جَمَعَ عَلَيْهِ الشُّهَدَاءَ كُلَّمَا أُتِي بِشَهِيدٍ وُضِعَ إِلَى حَمْزَةَ فَصَلَّى عَلَيْهِ وَعَلَى الشُّهَدَاءِ مَعَهُ حَتَّى صَلَّى عَلَيْهِ وَعَلَى الشُّهَدَاءِ اثْنَتَيْنِ وَسَبْعِينَ صَلَاةً ثُمَّ قَامَ عَلَى أَصْحَابِهِ حَتَّى وَارَاهُمْ وَلَمَّا نَزَلَ الْقُرْآنُ عَفَا رَسُولُ اللهِ ﷺ وَتَجَاوَزَ وَتَرَكَ الْمُثْلَ