وَإِنْ عَاقَبْتُمْ فَعَاقِبُوا بِمِثْلِ مَا عُوقِبْتُم بِهِ ۖ وَلَئِن صَبَرْتُمْ لَهُوَ خَيْرٌ لِّلصَّابِرِينَ
“And if you punish [an enemy, O believers], punish with an equivalent of that with which you were harmed. But if you are patient -- it is better for those who are patient.”
Revealed after the Prophet ﷺ vowed to mutilate 30 Quraysh bodies in response to what was done to Hamzah RA, restraining the vow to a like-for-like limit.