Bulugh al-Maram
Bulugh al-Maram 533
Arabic hadith text
وَعَنْ أَنَسٍ - رضى الله عنه - قَالَ: قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -{ لَا يَتَمَنَّيَنَّ أَحَدُكُمُ اَلْمَوْتَ لِضُرٍّ يَنْزِلُ بِهِ, فَإِنْ كَانَ لَا بُدَّ مُتَمَنِّيًا فَلْيَقُلْ: اَللَّهُمَّ أَحْيِنِي مَا كَانَتِ اَلْحَيَاةُ خَيْرًا لِي, وَتَوَفَّنِي إِذَا كَانَتِ اَلْوَفَاةُ خَيْرًا لِي } مُتَّفَقٌ عَلَيْهِ 1 .1 - صحيح. رواه البخاري (5671)، ومسلم (2680).
Translation
Anas reported that the Messenger of Allah ﷺ said: None of you should wish for death because of hardship that befalls him. If he must wish for it, let him say: O Allah, keep me alive as long as life is better for me, and take me in death when death is better for me. Agreed upon. Al-Bukhari (5671) and Muslim (2680); authentic.