He said that the Messenger of Allah ﷺ used to teach us the tashahhud just as he would teach us the Quran. He would say, "All blessed greetings, prayers, and good words are due 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."
حدثنا قتيبة بن سعيد حدثنا الليث عن أبي الزبير عن سعيد بن جبير وطاوس
أنه قال كان رسول الله ﷺ يعلمنا التشهد كما يعلمنا القرآن وكان يقول التحيات المباركات الصلوات الطيبات لله السلام عليك أيها النبي ورحمة الله وبركاته السلام علينا وعلى عباد الله الصالحين أشهد أن لا إله إلا الله وأشهد أن محمدا رسول الله
Reference: also narrated by Muslim, hadith no. 403, from Qutayba through him.