Muhammad 47:28
ذَٰلِكَ بِأَنَّهُمُ ٱتَّبَعُوا۟ مَآ أَسْخَطَ ٱللَّهَ وَكَرِهُوا۟ رِضْوَٰنَهُۥ فَأَحْبَطَ أَعْمَـٰلَهُمْ
Thalika bi-annahumu ittabaAAoo maaskhata Allaha wakarihoo ridwanahufaahbata aAAmalahum
That is because they followed what angered Allāh and disliked [what earns] His pleasure, so He rendered worthless their deeds.
That is because they followed that which has angered Allah, and they disliked His pleasure; therefore He has nullified their deeds.