Anas reported God’s messenger as saying, “When a Muslim is afflicted with some trouble in his body the angel is told to record for him his good deeds which he was accustomed to do. Then if God cures him He washes and purifies him , and if He takes him in death He forgives him and shows mercy to him.”
‘Abdallah b. ‘Amr reported God’s messenger as saying, “When a servant of God is accustomed to worship Him in a good manner, then becomes ill, the angel who is entrusted with him is told to record for him actions equivalent to those which he did when he was well till God sets him free from his illness or takes him in death.”
Jabir b. ‘Atik reported God’s messenger as saying, “There are seven types of martyrdom apart from being killed in God’s path. Those who die of plague, those who are drowned, those who die of pleurisy, those who die of an internal complaint, those who are burnt to death, those who are killed by a building falling on them, and women who die while pregnant are martyrs.”
Abu Musa reported the Prophet as saying, “No affliction great or small afflicts a man but for a sin, but there are more which God forgives.” Then he recited, “Whatever misfortune befalls you, it is because of what your hands have done; but He forgives much.”(Qur’an, xlii, 30)