Abdullah bin Abbas reported,

The Messenger of Allah ﷺ used to teach us the tashahhud just as he would teach us a surah from the Quran. He would say, "All greetings of blessing and prayers of goodness belong to Allah. Peace be upon you, Prophet, and the mercy of Allah and His blessings. Peace be upon us and upon the righteous servants of Allah. I bear witness that there is no god but Allah, and I bear witness that Muhammad is the Messenger of Allah."In the narration of Ibn Rumh, it says, "just as he would teach us the Quran."

Muslim 902

Sahih

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

عن ابن عباس أنه قال

كان رسول الله ﷺ يعلمنا التشهد كما يعلمنا السورة من القرآن فكان يقول التحيات المباركات الصلوات الطيبات لله السلام عليك أيها النبي ورحمة الله وبركاته السلام علينا وعلى عباد الله الصالحين أشهد أن لا إله إلا الله وأشهد أن محمدا رسول الله وفي رواية ابن رمح كما يعلمنا القرآن

مسلم 902صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Tashahhud in prayer
Numbering
Darussalam 902
Muslim 902