Sure An-Nahl

16:126

وَإِنْ عَاقَبْتُمْ فَعَاقِبُوا۟ بِمِثْلِ مَا عُوقِبْتُم بِهِۦ ۖ وَلَئِن صَبَرْتُمْ لَهُوَ خَيْرٌۭ لِّلصَّٰبِرِينَ

Und wenn ihr bestraft, so bestraft im gleichen Maß, wie ihr bestraft wurdet. Wenn ihr aber geduldig seid, so ist das wahrlich besser für die Geduldigen.

Tafsir 16:126

If you want to retaliate against your enemy then retaliate to the same degree that they harmed you and not more. But if you are patient and do not retaliate despite having the ability to do so, then that is better for the patient amongst you than taking revenge by retaliating against them.