عَنْ أَبِي الْيَسَرِ السُّلَمِيِّ رَضِيَ اللَّهُ عَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ كَانَ يَدْعُو فَيَقُولُ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَدْمِ وَالتَّرَدِّي وَالْهَرَمِ وَزَادَ فِي رِوَايَةٍ وَأَعُوذُ بِكَ مِنَ الْغَمِّ وَالْغَرَقِ وَالْحَرِيقِ وَأَعُوذُ بِكَ أَنْ يَتَخَبَّطَنِي الشَّيْطَانُ عِنْدَ الْمَوْتِ وَأَنْ أُقْتَلَ فِي سَبِيلِكَ مُدْبِرًا وَأَنْ أَمُوتَ لَدِيغًا
It is narrated from Sayyiduna Abu Yasar Salmi (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) used to supplicate with these words: "O Allah! I seek refuge in You from being overtaken by a collapsing wall or building, from falling from a high place, from extreme old age, and I seek refuge in You from sorrow, from drowning, from burning, and I seek refuge in You from the devil making me lose my senses at the time of death, and from being killed while fleeing on Your path, and from dying due to being bitten."