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.”
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.”
Sa'd said that when the Prophet was asked which people suffered the greatest affliction he replied, “The prophets, then those who come next to them, then those who come next to them. A man is afflicted in keeping with his religion; if he is firm in his religion his trial is severe, but if there is weakness in his religion it is made light for him, and it continues like that till he walks on the earth having no sin.”
Tirmidhi, Ibn Majah and Darimi transmitted it, and Tirmidhi said this is a hasan sahih tradition.
‘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.”