Abdullah bin Abbas reported,

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

Azami 2182

Sahih

عن ابن عباس قال

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

الأعظمي 2182صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Tashahhud and salam
Section
Supplications before the taslim
Numbering
Jami al-Kamil 2182 (2nd edition)