Surah Ash-Shuraa 42:40
وَجَزَٰٓؤُا۟ سَيِّئَةٍ سَيِّئَةٌ مِّثْلُهَا ۖ فَمَنْ عَفَا وَأَصْلَحَ فَأَجْرُهُۥ عَلَى ٱللَّهِ ۚ إِنَّهُۥ لَا يُحِبُّ ٱلظَّـٰلِمِينَ
And the retribution for an evil act is an evil one like it, but whoever pardons and makes reconciliation - his reward is [due] from Allāh. Indeed, He does not like wrongdoers.
Translation: Saheeh International
Tafsir
For the requital of an evil deed is an evil deed like it the latter is also referred to as ‘an evil deed’ because in outward form it resembles the former; this is evident in what concerns retaliation for wounds. …
Excerpt from Tafsir al-Jalalayn, commentary on 42:40, via Quran.com. The reader has the full commentary and 9 more tafsirs.