۞ يَا أَيُّهَا الَّذِينَ آمَنُوا أَطِيعُوا اللَّهَ وَأَطِيعُوا الرَّسُولَ وَلَا تُبْطِلُوا أَعْمَالَكُمْ (33)
(47:33) Believers, obey Allah and obey the Messenger and do not cause your works to be nullified. *40
*40) In other words, the deeds' being beneficial and yielding of good results depends wholly on one's obedience to Allah and His Messenger. After one has turned away from obedience, no deed remains a good deed so that one may deserve any reward for it.