The Messenger of Allah ﷺ said, "When any of you finishes the final tashahhud, let him seek refuge with Allah from four things, from the punishment of Hell, from the punishment of the grave, from the trials of life and death, and from the trial of the False Messiah, the Dajjal."
حدثنا عبد الرحمن بن إبراهيم الدمشقي حدثنا الوليد بن مسلم حدثنا الأوزاعي حدثني حسان بن عطية حدثني محمد بن أبي عائشة قال سمعت
قال رسول الله ﷺ إذا فرغ أحدكم من التشهد الأخير فليتعوذ بالله من أربع من عذاب جهنم ومن عذاب القبر ومن فتنة المحيا والممات ومن فتنة المسيح الدجال
Reported by Muslim, chapter on the Mosques, section on what should be sought refuge from during the prayer, no. 588, from the hadith of Walid Ibn Muslim, through him.