Sura Al-Hajj

22:60

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

Så [skall det bli]. Den som besvarar ett angrepp som han utsatts för med samma medel och som därefter angrips på nytt, skall helt visst få Guds hjälp. Gud utplånar och förlåter mycken synd.

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.