Surah Al-Hajj

22:60

۞ ذَٰلِكَ وَمَنْ عَاقَبَ بِمِثْلِ مَا عُوقِبَ بِهِۦ ثُمَّ بُغِىَ عَلَيْهِ لَيَنصُرَنَّهُ ٱللَّهُ ۗ إِنَّ ٱللَّهَ لَعَفُوٌّ غَفُورٌۭ

That [is so]. And whoever responds [to injustice] with the equivalent of that with which he was harmed and then is tyrannized - Allah will surely aid him. Indeed, Allah is Pardoning and Forgiving.

Tafsir 22:60

The aforementioned, i.e. those who migrated in the path of Allah being entered into paradise, and permission for the wronged to avenge justly without incurring sin. If the oppressor returns to his oppression, Allah will help the oppressed. Indeed, Allah overlooks the sins of the believers and forgives them.