Sahih Bukhari · Hadith 6425
Invocations - كتاب الدعوات
حدثنا ابن سلام، أخبرنا إسماعيل ابن علية، عن عبد العزيز بن صهيب، عن أنس رضى الله عنه قال قال رسول الله صلى الله عليه وسلم " لا يتمنين أحد منكم الموت لضر نزل به، فإن كان لا بد متمنيا للموت فليقل اللهم أحيني ما كانت الحياة خيرا لي، وتوفني إذا كانت الوفاة خيرا لي ".
Narrated Anas: Allah's Apostle said," None of you should long for death because of a calamity that had befallen him, and if he cannot, but long for death, then he should say, 'O Allah! Let me live as long as life is better for me, and take my life if death is better for me.' "
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).