"None of you should wish for death because of some harm that befalls him, rather he should…

Sunan an-Nasa'i Book 21 Hadith 3

Sunan an-Nasa'i #1820

The Book of Funerals 21:3

It was narrated form Anas that the Messenger of Allah said:

"None of you should wish for death because of some harm that befalls him, rather he should say: 'Allahumma ahini ma kanatil-hayatu khairanli wa tawaffani idha kanatil-wafatu khairanli (O Allah, keep me alive so alive so long as life is good for me, and cause me to die when death is good for me.)"'

Chapter: Wishing For Death

Grade: Sahih (Darussalam)