Surah At-Tawbah 9:50
إِن تُصِبْكَ حَسَنَةٌ تَسُؤْهُمْ ۖ وَإِن تُصِبْكَ مُصِيبَةٌ يَقُولُوا۟ قَدْ أَخَذْنَآ أَمْرَنَا مِن قَبْلُ وَيَتَوَلَّوا۟ وَّهُمْ فَرِحُونَ
If good befalls you, it distresses them; but if disaster strikes you, they say, "We took our matter [in hand] before," and turn away while they are rejoicing.
Translation: Saheeh International
Tafsir
If good fortune such as a victory or a taking of some spoils befalls you it vexes them; but if an affliction some hardship befalls you they say ‘We took our precaution judiciously — when we stayed behind — before’ before this act of disobedience; and they turn away rejoicing at what has afflicted you.
Excerpt from Tafsir al-Jalalayn, commentary on 9:50, via Quran.com. The reader has the full commentary and 9 more tafsirs.