Abdullah bin Abbas reported,

The Messenger of Allah ﷺ used to teach them this supplication just as he would teach them a surah from the Quran, "O Allah, I seek refuge in You from the punishment of Hell, and from the punishment of the grave, and I seek refuge in You from the trial of the Messiah, the Dajjal, and I seek refuge in You from the trials of life and death."

Tirmidhi 3494

Sahih

حدثنا الأنصاري حدثنا معن حدثنا مالك عن أبي الزبير المكي عن طاوس اليماني

عن عبد الله بن عباس

أن رسول الله ﷺ كان يعلمهم هذا الدعاء كما يعلمهم السورة من القرآن اللهم إني أعوذ بك من عذاب جهنم ومن عذاب القبر وأعوذ بك من فتنة المسيح الدجال وأعوذ بك من فتنة المحيا والممات

الترمذي 3494صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
O Allah, I seek refuge in You from the torment of Hell
Numbering
Darussalam 3494
Tirmidhi 3494