Narrated Anas (RA): Allah’s Messenger (peace be upon him) said,” None of you should long for death because of a calamity that had befallen him, and if he cannot but long for death, then he should say, ‘O Allah! Let me live as long as life is better for me, and take my life if death is better for me.’ “
(Sahih al-Bukhari, Book 80, Hadith 48)