(2) باب الدُّعَاءِ بِالْمَوْتِ
It was narrated that Anas said:
"The Messenger of Allah said: 'Do not pray for death or wish for it. Whoever insists on praying for it let him say: Allahumma ahini ma kanatil-hayatu khairanli wa tawaffani idha kanatil-wafatu khairanli (O Allah, keep me alive so long as life is good for me, and cause me to die when death is good for me.)"'
Reference: Sunan an-Nasa'i 1822
In-book reference: Book 21, Hadith 5
English translation: Vol. 3, Book 21, Hadith 1823