None of you should wish for death because of a calamity that has befallen him. If he must wish for death, then let him say: O Alah, keep me alive as long as life is good for me, and take my life if death is good for me.
None of you should wish for death or make a supplication for it before it comes to him. When one of you dies, his deeds -or he said- appointed term comes to an end. And the prolonged life of a believer only increses goodness for him.