Surah Muhammad 47:9
ذَٰلِكَ بِأَنَّهُمْ كَرِهُوا۟ مَآ أَنزَلَ ٱللَّهُ فَأَحْبَطَ أَعْمَـٰلَهُمْ
That is because they disliked what Allāh revealed, so He rendered worthless their deeds.
Translation: Saheeh International
Tafsir
That wretchedness and wasting of their works is because they are averse to what God has revealed of the Qur’ān with all that it includes of religious obligations takālīf so He has made their works fail.
Excerpt from Tafsir al-Jalalayn, commentary on 47:9, via Quran.com. The reader has the full commentary and 9 more tafsirs.