Hadith 12015

(حديث مرفوع) حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ ، عَنْ حُمَيْدٍ ، عَنْ أَنَسٍ ، قَالَ : قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " لَا يَتَمَنَّيَنَّ أَحَدُكُمْ الْمَوْتَ لِضُرٍّ نَزَلَ بِهِ ، وَلَكِنْ لِيَقُلْ : اللَّهُمَّ أَحْيِنِي مَا كَانَتْ الْحَيَاةُ خَيْرًا لِي ، وَتَوَفَّنِي إِذَا كَانَتْ الْوَفَاةُ خَيْرًا لِي " .
It is narrated from Hazrat Anas (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: None of you should wish for death because of a calamity that has befallen him. If wishing for death becomes necessary, then he should say: O Allah! Keep me alive as long as life is better for me, and grant me death when death is better for me.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 12015
Hadith Grading حکم دارالسلام: إسناده صحيح ، خ : 6351 ، م: 2680