The Messenger of Allah ﷺ used to make this supplication, "Allah, I seek refuge in You from being crushed under collapsing structures, from falling from heights, from frail old age, from drowning, and from burning. I seek refuge in You from being misled by Satan at the moment of death, from being killed in Your cause while fleeing, and from dying of a venomous bite."
حدثنا علي بن بحر قال حدثنا أبو ضمرة قال حدثني عبد الله بن سعيد عن جده أبي هند عن صيفي
أن رسول الله ﷺ كان يدعو فيقول اللهم إني أعوذ بك من الهدم والتردي والهرم والغرق والحريق وأعوذ بك أن يتخبطني الشيطان عند الموت وأن أقتل في سبيلك مدبرا وأن أموت لديغا
Its chain of transmission is daif because Abu Hind is unidentified. Ali bin Bahr bin Bari Baghdadi is trustworthy and virtuous, and Abu Damra, who is Anas bin Iyad Laythi, is also trustworthy. The hadith itself is sahih. See the previous one.