"On the Day of Uhud, sixty-four of the Ansar were killed, and six from the Muhajirin, one of whom was Hamzah, and they mutilated them, so the Ansar said: 'If, (in the future) we are able to kill them on a day like this, we would mutilate from among them as twice as they (mutilate from among us).'" He said: "So on the day of the Conquest of Makkah, Allah revealed: And if you punish them, then punish them with the like of that with which you were afflicted. But if you have patience, then it is better for those who are patient (16:126). So a man said: 'There shall be no Quraish after today.' But the Messenger of Allah ﷺ said: 'Leave the people, except for four.'" (Using translation from Tirmidhī 3129)
أُصِيبَ يَوْمَ أُحُدٍ مِنَ الْأَنْصَارِ أَرْبَعَةٌ وَسِتُّونَ وَأُصِيبَ مِنَ الْمُهَاجِرِينَ سِتَّةٌ فِيهِمْ حَمْزَةُ ؓ فَمَثَّلُوا بِقَتْلَاهُمْ فَقَالَتِ الْأَنْصَارُ لَئِنْ أَصَبْنَا مِنْهُمْ يَوْمًا مِنَ الدَّهْرِ لَنُرْبِيَنَّ عَلَيْهِمْ فَلَمَّا كَانَ يَوْمُ فَتْحُ مَكَّةَ نَادَى رَجُلٌ لَا يُعْرَفُ يَقُولُ لَا قُرَيْشَ بَعْدَ الْيَوْمِ وَأَنْزَلَ اللهُ ﷻ عَلَى نَبِيِّهِ ﷺ {وَإِنْ عَاقَبْتُمْ فَعَاقِبُوا بِمِثْلِ مَا عُوقِبْتُمْ بِهِ وَلَئِنْ صَبَرْتُمْ لَهُوَ خَيْرٌ لِلصَّابِرِينَ} فَقَالَ نَبِيُّ اللهِ ﷺ «كُفُّوا عَنِ الْقَوْمِ»