Messenger of Allah ﷺ taught me the Tashah-hud as he taught me a Sura from the Qur'an, while my hand was between his hands. (Tashah-hud was) all the best compliments and the prayers and the good things are for Allah. Peace and Allah's Mercy and Blessings be on you, O Prophet! Peace be on us and on the pious slaves of Allah, I testify that none has the right to be worshipped but Allah, and I also testify that Muhammad is Allah's slave and His Apostle. (We used to recite this in the prayer) during the lifetime of the Prophet ﷺ , but when he had died, we used to say, "Peace be on the Prophet." (Using translation from Bukhārī 6265)
عَلَّمَنِي رَسُولُ اللهِ ﷺ التَّشَهُّدَ كَفِّيبَيْنَ كَفَّيْهِ كَمَا يُعَلِّمُنِي السُّورَةَ مِنَ الْقُرْآنِ قَالَ التَّحِيَّاتُ لِلَّهِ وَالصَّلَوَاتُ وَالطَّيِّبَاتُ السَّلَامُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ السَّلَامُ عَلَيْنَا وَعَلَى عِبَادِ اللهِ الصَّالِحِينَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ وَهُوَ بَيْنَ ظَهْرَانَيْنَا فَلَمَّا قُبِضَ قُلْنَا السَّلَامُ عَلَى النَّبِيِّ