Let not one of you wish for death
Anas (radi Allahu anhu) reported that the Messenger of Allah (sal Allahu alaihi wa sallam) 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.”
[Sahih al-Bukhari and Muslim]
Since man has no knowledge of his future, whether it is good or bad, so one should never desire for one’s own death in consequence of frustration created by troubles and turmoil for two reasons:
1. Firstly, desire for death is sheer impatience.
2. Secondly, it is quite possible that remaining part of his life may be good for his religious and worldly life. So, it is prohibited to desire death.
It is, however, permissible to desire for Shahadah or death in Makkah or Al-Madinah but it is a subject quite different from the one under discussion.
However, if one has to express wish for his own death, he should do so in the words quoted in the Hadith concerned.
And Allah Knows Best!