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. He would say, "O Allah, I seek refuge in You from the punishment of Hell, I seek refuge in You from the punishment of the grave, I seek refuge in You from the trial of the False Messiah Dajjal, and I seek refuge in You from the trials of life and death."

Azami 11334

Sahih

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

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

الأعظمي 11334صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Comprehensive and general supplications
Section
What one seeks refuge from
Numbering
Jami al-Kamil 11334 (2nd edition)
Azami 11334