CHAPTER: It Is Disliked To Wish For Death.
Narrated Anas: The Messenger of Allah صلی اللہ علیہ وسلم as saying: No one of you should wish for death for any calamity that befalls him, but he should say: O Allah! cause me to live so long as my life is better for me ; and cause me to die where death is better for me.
Narrated Anas bin Malik: The Prophet صلی اللہ علیہ وسلم as saying: No one of you should wish for death. He then mentioned the rest of the tradition in a similar manner.