Narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Noble Prophet (peace and blessings of Allah be upon him) used to say: "Every person should never wish for death because of distress or calamity, and if someone is compelled to do so, then he should pray in this way: 'O Allah! Keep me alive as long as life is better for me, and when death is better for me, then take me away.'"