Contemplation of Death and Preparation for it by Good Deeds
     Allah and His Messenger, peace be upon him, encourage us    to contemplate death and be ready for it with good deeds.
    This is regarded as a sign of goodness. Ibn ' Umar    reports: "I came to the Prophet, peace be upon him, and I    was the tenth of the first ten people (who embraced    Islam). A man from among the Ansar got up and said: "O    Prophet of Allah, who is the most sagacious and the most    prudent among the people?" He replied: "Those who are    most aware of death and prepare themselves for it. They    are the wisest of people and will have honor in this    world and a generous reward in the Hereafter'." Ibn 'Umar    also said that Allah's Messenger, peace be upon him,    said: "You should remember the reality that brings an end    to all worldly joys and pleasures, namely, death." (Both    hadith are narrated by At-Tabarani with a sound chain of    narrators)         Ibn Mas'ud narrated that the Messenger of Allah, peace be    upon him, explained the following words of Allah, the    Exalted: "The hearts of those whom Allah wills to guide,    He opens to Islam." (Qur'an 6.125) This means, the    Messenger explained, that, "When the light (of truth)    enters the heart it expands and opens up." The Companions    asked: "Is there any evidence of this (in the life of a    Muslim)?" He replied: "Being ever mindful of the eternal    life of the Hereafter, and remaining at guard in this    life of delusion, and preparing oneself for death before    it comes." This is reported by Ibn Jarir through    different chains each of which strengthens the other.
    
It is Not Proper for a Person to Wish for Death
     It is makruh or "disliked" to wish for one's death, or    pray to Allah for it, due to poverty, distress, illness,    or the like. The six canonical compilers of hadith    narrate on the authority of Anas that the Prophet, peace    be upon him, said: "Let no one among you wish for death    due to any hardship that may befall him. But if one has    no other choice, but to do so, one should say: "O Allah!    Grant me life as long as life is good for me, and cause    me to die when death is better for me."
         The wisdom in the prohibition against wishing for death    becomes obvious from a hadith narrated by Umm al-Fadl:    "The Prophet, peace be upon him, went to see Al-'Abbas.
    He found him wishing for death. Thereupon the Prophet    said: 'O Abbas! O Uncle of Allah's Messenger! Do not wish    for death. If you do good and live long, your good deeds    will multiply. Then that is better for you. If you are    not good and your death is delayed, you may seek Allah's    forgiveness. That is better for you. So do not wish for    death'." (Narrated by Ahmad and Al-Hakim, who says it is    sound according to Muslim's criteria)         It is permissible, however, to wish for death, and there    is no harm in doing so, when one fears persecution that    puts one's faith at risk, as is indicated by the    following supplication of the Messenger of Allah, peace    be upon him: Allahumma inni as'aluka fi'lal khairat wa    tarkal munkarat wa hubbal masakin wa an taghfarali wa    tarhamani wa idha aradata fitnatan fi qaumi fatawafani    ghaira maftunin wa as'aluka hubbaka wa hubba man    yuhibbuka wa hubba 'amalin yuqaribu ila hubbika  "O    Allah! I ask You for the means to do good, to avoid evil,    and to love the poor, and I beseech You to forgive me and    have mercy on me. When You subject my people to a trial,    cause me to die without being affected by it. O Allah! I    ask Your love, the love of those who love You, and the    love of all such actions that bring one closer to Your    Love."(Narrated by Tirmidhi who said it is a good and    sound hadith)         'Umar used to pray in these words: Allahumma kabirat    sinni wa da'ufat quwwati wa anshrat ra'i-atifaqbidni    ilaika ghaira mudayi' wa la mufaratti "O Allah! I have    grown old, I have become weak, and my flock has spread    far and wide. Therefore, O Allah, take me to You before I    fall short of doing my duties or transgress my limits."
    This is reported by Malik.
    
Help us build Quranic citations related to this hadith. Get connected with our Contact Us option.
"When a person dies, his works end, except for three: ongoing charity, knowledge that is benefited from, and a righteous child who prays for him."
Prophet Mohammed (PBUH)
"The best of what a man leaves behind are three: a righteous child who supplicates for him, ongoing charity the reward of which reaches him, and knowledge that is acted upon after him."
Sunan Ibn Mājah
"Every day two angels come down from Heaven and one of them says, 'O Allah! Compensate every person who spends in Your Cause,' and the other (angel) says, 'O Allah! Destroy every miser.'"
Sahih Bukhari