Dr. Mustafa Khattab, the Clear Quran - Surah Muhammad, ayah 28

Translation of Surah Muhammad, ayah 28 (47:28)

ذَٰلِكَ بِأَنَّهُمُ ٱتَّبَعُواْ مَآ أَسۡخَطَ ٱللَّهَ وَكَرِهُواْ رِضۡوَٰنَهُۥ فَأَحۡبَطَ أَعۡمَٰلَهُمۡ ٢٨
This is because they follow whatever displeases Allah and hate whatever pleases Him, so He has rendered their deeds void.