The Messenger of Allah ﷺ used to supplicate, "O Allah, I seek refuge in You from being crushed by a falling structure, I seek refuge in You from falling from a height, I seek refuge in You from drowning, burning, and decrepit old age, I seek refuge in You from Satan overcoming me at the moment of death, I seek refuge in You from dying while fleeing in Your path, and I seek refuge in You from dying from a venomous bite."
أن رسول الله ﷺ كان يدعو: اللهم! إني أعوذ بك من الهدم، وأعوذ بك من التردي، وأعوذ بك من الغرق والحرق والهرم، وأعوذ بك أن يتخبطني الشيطان عند الموت، وأعوذ بك أن أموت في سبيلك مدبرا، وأعوذ بك أن أموت لديغا.
Reported by Abu Dawud (1552-1553), Nasai (5531-5532), and Ahmad (15523), all of them through routes from Abdullah bin Saeed bin Abu Hind, from Sayfi the freedman of Aflah the freedman of Abu Ayub, from Abu Yusr, who related it.Its chain of transmission is hasan because of Sayfi, who is Ibn Ziyad the Ansari, for he is hasan al-hadith. The discussion of this is detailed in the Book of Supplications and Remembrances.