Sure Al-Hajj

22:60

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

Dies, und wer im gleichen Maß bestraft, wie er bestraft wurde, hierauf aber (wieder zu Unrecht) angegriffen wird, dem wird Allah ganz gewiß helfen. Allah ist wahrlich Allverzeihend und Allvergebend.

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.