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, "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 False Messiah, the Dajjal, and I seek refuge in You from the trials of life and death."Muslim bin al-Hajjaj said, "It has reached me that Tawsa said to his son, 'Did you recite this supplication in your prayer?'His son replied, 'No.'Tawsa said, 'Repeat your prayer,' for Tawsa narrated it from three or four companions," or as he said.

Muslim 1333

Sahih

و حدثنا قتيبة بن سعيد عن مالك بن أنس فيما قرئ عليه عن أبي الزبير عن طاوس

عن ابن عباس

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

مسلم 1333صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
What is sought refuge from in prayer
Numbering
Darussalam 1333
Muslim 1333