The Messenger of Allah ﷺ used to teach us the tashahhud just as he taught us a surah from the Quran.In the name of Allah and by Allah. All greetings belong to Allah, and prayers and good things. 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 His servant and His messenger. I ask Allah for Paradise and seek refuge in Allah from the Fire.
أخبرنا محمد بن عبد الأعلى قال حدثنا المعتمر قال سمعت أيمن وهو ابن نابل يقول حدثني أبو الزبير
كان رسول الله ﷺ يعلمنا التشهد كما يعلمنا السورة من القرآن بسم الله وبالله التحيات لله والصلوات والطيبات السلام عليك أيها النبي ورحمة الله وبركاته السلام علينا وعلى عباد الله الصالحين أشهد أن لا إله إلا الله وأشهد أن محمدا عبده ورسوله أسأل الله الجنة وأعوذ بالله من النار
[Its chain is daif] Ibn Majah reported it, Establishing the Prayers, chapter on what has been said about the tashahhud, no. 902, from the hadith of Mutamir bin Sulayman with the same chain, and it is in Kubra, no. 763 * Abu Zubayr used "an" [in narrating], as previously noted, no. 594.