Suuratush – Shuuraa Verse 40.
وَجَزَٰٓؤُا۟ سَيِّئَةٍ سَيِّئَةٌ مِّثْلُهَا ۖ فَمَنْ عَفَا وَأَصْلَحَ فَأَجْرُهُۥ عَلَى ٱللَّـهِ ۚ إِنَّهُۥ لَا يُحِبُّ ٱلظَّـٰلِمِينَ ﴿٤٠
40. The recompense for an evil is an evil like thereof, but whoever forgives and makes reconciliation, his reward is due from Allaah. Verily, He likes not the Zalimun (oppressors, polytheists, and wrong-doers, etc.).
Tafsir Ibn Kathir Volume 8, Page 600.
Justice, has been prescribed, in the form of the prescribed laws of equality in punishment (Al-Qisas), but the better way, which means forgiving, is recommended, as Allaah says:
﴿وَالْجُرُوحَ قِصَاصٌ فَمَن تَصَدَّقَ بِهِ فَهُوَ كَفَّارَةٌ لَّهُ﴾
(and wounds equal for equal. But if anyone remits the retaliation by way of charity, it shall be for him an expiation) (5:45). Allah says here:
﴿فَمَنْ عَفَا وَأَصْلَحَ فَأَجْرُهُ عَلَى اللَّهِ﴾
(but whoever forgives and makes reconciliation, his reward is with Allaah ) means, that will not be wasted with Allaah. As it says in a Sahih Hadith:
«وَمَا زَادَ اللهُ تَعَالَى عَبْدًا بِعَفْوٍ إِلَّا عِزًّا»
(Allaah does not increase the person who forgives except in honor)”
﴿إِنَّهُ لاَ يُحِبُّ الظَّـلِمِينَ﴾
(Verily, He likes not the wrongdoers) means, the aggressors, i.e., those who initiate the evil actions.