Question:
Will the good deeds of the disbelievers benefit them?
Answer:
On the Day of Resurrection, having a sound creed is a condition for the acceptance of deeds. No deed of the disbelievers is accepted. If they do some welfare work in this world, help someone in distress, or even build mosques and madrasas for the Muslims, no good deed will benefit them in the Hereafter. However, if Allah gives them their reward in this world, that is a different matter. In reality, shirk destroys all good deeds, and no deed of a polytheist is accepted.
❀ The statement of Allah, the Exalted, is:
وَلَوْ أَشْرَكُوا لَحَبِطَ عَنْهُمْ مَا كَانُوا يَعْمَلُونَ
Even if the aforementioned prophets had hypothetically committed shirk, their deeds would have been destroyed.
When no deed is accepted while shirk is present, and even previous deeds are destroyed, how can salvation be possible?
❀ Qadi Iyad (may Allah have mercy on him)
said:
قد انعقد الإجماع على أن الكفار لا تنفعهم أعمالهم ولا يثابون عليها بنعيم ولا تخفيف عذاب لكن بعضهم أشد عذابا من بعض بحسب جرائمهم
There is consensus that the deeds of the disbelievers will not benefit them. They will not be rewarded with blessings, nor will their punishment be lightened. However, some disbelievers will be afflicted with a more severe punishment than other disbelievers, according to their crimes.