4:149
إِن تُبْدُوا۟ خَيْرًا أَوْ تُخْفُوهُ أَوْ تَعْفُوا۟ عَن سُوٓءٍۢ فَإِنَّ ٱللَّهَ كَانَ عَفُوًّۭا قَدِيرًا
If [instead] you show [some] good or conceal it or pardon an offense - indeed, Allah is ever Pardoning and Competent.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
The Permission to Utter Evil in Public, For One Who Was Wronged
`Ali bin Abi Talhah said that Ibn `Abbas commented on the Ayah,
لاَّ يُحِبُّ اللَّهُ الْجَهْرَ بِالسُّوءِ مِنَ الْقَوْلِ
(Allah does not like that the evil should be uttered in public) "Allah does not like that any one should invoke Him against anyone else, unless one was wronged. In this case, Allah allows one to invoke Him against whoever wronged him. Hence Allah's statement,
إَلاَّ مَن ظَلَمَ
(except by him who has been wronged.) Yet, it is better for one if he observes patience." Al-Hasan Al-Basri commented, "One should not invoke Allah (for curses) against whoever wronged him. Rather, he should supplicate, `O Allah! Help me against him and take my right from him."' In another narration, Al-Hasan said, "Allah has allowed one to invoke Him against whoever wronged him without transgressing the limits." `Abdul-Karim bin Malik Al-Jazari said about this Ayah; "When a man curses you, you could curse him in retaliation. But if he lies about you, you may not lie about him.