Sahih Bukhari | Volume 8 | Hadith Number 362

Narrated by Anas
Allah's Apostle 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.'"