47:32
إِنَّ ٱلَّذِينَ كَفَرُوا۟ وَصَدُّوا۟ عَن سَبِيلِ ٱللَّهِ وَشَآقُّوا۟ ٱلرَّسُولَ مِنۢ بَعْدِ مَا تَبَيَّنَ لَهُمُ ٱلْهُدَىٰ لَن يَضُرُّوا۟ ٱللَّهَ شَيْـًۭٔا وَسَيُحْبِطُ أَعْمَٰلَهُمْ
Indeed, those who disbelieved and averted [people] from the path of Allah and opposed the Messenger after guidance had become clear to them - never will they harm Allah at all, and He will render worthless their deeds.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
Nullifying the Disbelievers' Deeds and the Command to chase Them
Allah then informs about those who disbelieve, obstruct others from the path of Allah, oppose the Messenger and contend with him, and revert from the faith after guidance has become clear to them. He indicates that those people can never harm Allah in the least, and rather they only harm themselves and become losers on the Day of Resurrection. He will nullify their deeds. Allah will not reward them even the weight of a mosquito (i.e., the smallest thing) for any good that they did before their apostasy, but would instead totally invalidate and destroy it. Their apostasy wipes away their good deeds entirely, just as the good deeds would normally wipe away the evil deeds. Imam Ahmad Ibn Nasr Al-Marwazi reported in Kitab As-Salah (the Book of Prayer) that Abu Al-`Aliyah said, "The Prophet's Companions used to think that no sin would harm a person who says `La ilaha illallah,' just as no good deed would benefit a person who joins partners with Allah. So Allah revealed,
أَطِيعُواْ اللَّهَ وَأَطِيعُواْ الرَّسُولَ وَلاَ تُبْطِلُواْ أَعْمَـلَكُمْ
(Obey Allah and obey the Messenger and do not invalidate your deeds.) This made them fear that some sins could nullify their deeds." It has also been reported from Ibn `Umar, may Allah be pleased with him, that he said, "We, the Companions of Allah's Messenger ﷺ, used to think that good deeds would all be accepted, until Allah revealed,
أَطِيعُواْ اللَّهَ وَأَطِيعُواْ الرَّسُولَ وَلاَ تُبْطِلُواْ أَعْمَـلَكُمْ
(Obey Allah and obey the Messenger and do not invalidate your deeds. ) So we asked each other: `What is it that can nullify our deeds' So we said, `The major sins, great offenses that require admission into the Fire and immoral sins.' But then Allah revealed,