Surah An-Nahl 16:126
وَإِنْ عَاقَبْتُمْ فَعَاقِبُوا۟ بِمِثْلِ مَا عُوقِبْتُم بِهِۦ ۖ وَلَئِن صَبَرْتُمْ لَهُوَ خَيْرٌ لِّلصَّـٰبِرِينَ
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.
Translation: Saheeh International
Tafsir
After Hamza b. ‘Abd al-Muttalib had been killed and mutilated and the Prophet s had seen him and said ‘Verily I will mutilate 70 of them for you’ the following was revealed And if you retaliate retaliate with the like of what you have been made to suffer; …
Excerpt from Tafsir al-Jalalayn, commentary on 16:126, via Quran.com. The reader has the full commentary and 9 more tafsirs.