The Prophet said, "None of you should wish for deathbecause of acalamity befalling him; but if he has to wish for death, he should say: "O Allah! Keep me alive as long as life is better for me, and let me die if death is better for me.' "
No. 5307 - Narrated Anas bin Malik (Book of Patients) No. 5947 - Narrated Anas (The Book of Invocations)