Surah Al-Imran, ayah 188

3:188

لَا تَحۡسَبَنَّ ٱلَّذِينَ يَفۡرَحُونَ بِمَآ أَتَواْ وَّيُحِبُّونَ أَن يُحۡمَدُواْ بِمَا لَمۡ يَفۡعَلُواْ فَلَا تَحۡسَبَنَّهُم بِمَفَازَةٖ مِّنَ ٱلۡعَذَابِۖ وَلَهُمۡ عَذَابٌ أَلِيمٞ ١٨٨

Lā tahsabannal-ladhīna yafrahūna bimā ataw wwayuhibbūna an yuhmadū bimā lam yaf'alū falā tahsabannahum bimafāzatim minal-'adhābi walahum 'adhābun alīm

And never think that those who rejoice in what they have perpetrated and like to be praised for what they did not do - never think them [to be] in safety from the punishment, and for them is a painful punishment.