Mishkat al-Masabih
Mishkat al-Masabih 1600
Arabic hadith text
وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " لَا يَتَمَنَّيَنَّ أَحَدُكُمُ الْمَوْتَ مِنْ ضُرٍّ أَصَابَهُ فَإِنْ كَانَ لابد فَاعِلًا فَلْيَقُلِ: اللَّهُمَّ أَحْيِنِي مَا كَانَتِ الْحَيَاةُ خَيْرًا لِي وَتَوَفَّنِي إِذَا كَانَتِ الْوَفَاةُ خَيْرًا لي "
Translation
Anas reported that the Messenger of Allah, peace and blessings be upon him, said: "None of you should wish for death because of an affliction that has befallen him. If he must do so, let him say: O Allah, keep me alive as long as life is better for me, and take my soul when death is better for me."