كتاب عيادة المريض وتشييع الميت والصلاة عليه وحضور دفنه
6  
The Book of Visiting the Sick
(147)
Chapter: Supplication when one is disappointed about his Life
(147)
باب ما يقوله من آيس من حياته
Riyad as-Salihin 912
'Aishah (May Allah be pleased with her) reported:
I saw the Messenger of Allah (ﷺ) when he was at the point of death. He had a drinking bowl with water in it. He would dip his hand into the bowl, and wipe his face. Then he would supplicate, "O Allah! Help me over pangs and agony of death."

[At-Tirmidhi].

وعنها قالت‏:‏ رأيت رسول الله صلى الله عليه وسلم وهو بالموت عنده قدح فيه ماء وهو يدخل يده في القدح، ثم يمسح وجهه بالماء، ثم يقول‏:‏ ‏ "‏اللهم أعني علي غمرات الموت وسكرات الموت‏"‏ ‏(‏‏(‏رواه الترمذي‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 912
In-book reference : Book 6, Hadith 19