The Messenger of Allah ﷺ used to say, "O Allah, I seek refuge in You from the punishment of the grave, I seek refuge in You from the punishment of the Fire, I seek refuge in You from the trials of life and death, and I seek refuge in You from the evil of the false messiah, the Dajjal."
أخبرنا يحيى بن درست قال حدثنا أبو إسمعيل قال حدثنا يحيى بن أبي كثير أن أبا سلمة حدثه
عن رسول الله ﷺ أنه كان يقول اللهم إني أعوذ بك من عذاب القبر وأعوذ بك من عذاب النار وأعوذ بك من فتنة المحيا والممات وأعوذ بك من شر المسيح الدجال
Its isnad is sahih, previously mentioned, hadith 2062, and it is in Sunan al-Kubra, hadith 7943.