Anas bin Malik reported,

The Prophet ﷺ said, "None of you should wish for death because of some harm 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 me when death is better for me.'"

Ahmad 13020

Sahih

حدثنا حجاج حدثنا شعبة عن ثابت البناني

عن أنس بن مالك

عن النبي ﷺ أنه قال لا يتمنى أحدكم الموت لضر أصابه فإن كان لا بد فاعلا فليقل اللهم أحيني ما كانت الحياة خيرا لي وتوفني إذا كانت الوفاة خيرا لي

أحمد 13020صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 13020
Ahmad 13020