Qur'an 47:28
ذَٰلِكَ بِأَنَّهُمُ ٱتَّبَعُوا۟ مَآ أَسْخَطَ ٱللَّهَ وَكَرِهُوا۟ رِضْوَٰنَهُۥ فَأَحْبَطَ أَعْمَـٰلَهُمْ
“That is because they followed what angered Allāh and disliked [what earns] His pleasure, so He rendered worthless their deeds.”
Muhammad 47:28 · Saheeh International