Surah Ash-Shuraa 42:41
وَلَمَنِ ٱنتَصَرَ بَعْدَ ظُلْمِهِۦ فَأُو۟لَـٰٓئِكَ مَا عَلَيْهِم مِّن سَبِيلٍ
And whoever retaliates after having been wronged - those have not upon them any cause [for blame].
Translation: Saheeh International
Tafsir
And whoever defends himself after he has been wronged that is to say after the wrongdoer has wronged him — for such there will be no course of action against them no blame on them.
Excerpt from Tafsir al-Jalalayn, commentary on 42:41, via Quran.com. The reader has the full commentary and 9 more tafsirs.