Let not one of you wish for death because of a misfortune which befalls him
Anas (May Allah be pleased with him) reported that:
The Messenger of Allah (may the peace and blessings of Allah be upon him) said, "Let not one of you wish for death because of a misfortune which befalls him. If he cannot help doing so, he should say: 'O Allah, keep me alive as long as You know that life is better for me, and make me die when death is better for me".
This Hadith teaches politeness with Allah in all of our affairs, and encourages us to be satisfied with His fate and to authorize him in both life and death. It warns us against transgressing the limits set by Allah even in choosing to die.
The person, by nature, hates death and likes to live. However, one may experience what makes him feels desperate; he considers his life in this world too long to endure. He wishes to die in order to rest from suffering the severe illness, extreme poverty, heavy debts and so on. He does not know if he will find comfort after death or not, he may die bearing heavy sins which cause him to endure the heat of the fire in his grave and on the last day. Perhaps Allah will bless him with a sincere repentance and grant him good deeds if he lived. Then he meets Allah as an honored servant and reward him well for his patience and striving against himself and his enemy.