[Machine] We used to say in the prayer: "Peace be upon so-and-so, peace be upon so-and-so." And we would name those whom we knew from among the angels and prophets. Then the Messenger of Allah ﷺ said to us, "Indeed, Allah is As-Salam (the Source of Peace)." Then he taught us the Tashahhud, and we would learn it just as one of us would learn a Surah from the Quran. He said: "Say: Greetings, prayers, and pure words are for Allah. Peace be upon you, O 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 slave and Messenger."
كُنَّا نَقُولُ فِي الصَّلَاةِ السَّلَامُ عَلَى فُلَانٍ السَّلَامُ عَلَى فُلَانٍ فَنُسَمِّي مَنْ عَلِمْنَا مِنْ عِلْمِنَا مِنَ الْمَلَائِكَةِ وَالْأَنْبِيَاءِ فَقَالَ لَنَا رَسُولُ اللهِ ﷺ «إِنَّ اللهَ هُوَ السَّلَامُ» ثُمَّ عَلَّمَنَا التَّشَهُّدَ فَكُنَّا نَتَعَلَّمُهُ كَمَا يَتَعَلَّمُ أَحَدٌ مِنَّا السُّورَةَ مِنَ الْقُرْآنِ قَالَ قُولُوا التَّحِيَّاتُ لِلَّهِ وَالصَّلَوَاتُ وَالطَّيِّبَاتُ السَّلَامُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ السَّلَامُ عَلَيْنَا وَعَلَى عِبَادِ اللهِ الصَّالِحِينَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ