Hafiz Mahfooz Ahmad
Benefits:
Those who die in a state of disbelief (kufr) or polytheism (shirk), all their righteous deeds are rendered void, supplications for their forgiveness become futile, and such a person is deprived in the Shari‘ah of all permissible forms of conveying reward (isal al-thawab) as well. However, if any disbeliever (kafir) or apostate (murtadd) embraces Islam, then the good deeds performed during the state of disbelief, the state of apostasy, and prior to apostasy are preserved for them, and due to these deeds, they are granted reward and recompense.
For a detailed discussion, refer to the section in this very book titled “The Significance of Good Deeds Performed by a Disbeliever Before Acceptance of Islam.”
Source: Silsilah Ahadith Sahihah: Commentary by Muhammad Mahfooz Ahmad, Page: 21