[Machine] We used to say in prayer, "Peace be upon Allah, peace be upon Gabriel and Michael, and every angel whose name we know." Then the Messenger of Allah ﷺ said, "Do not say, 'Peace be upon Allah,' for Allah is Peace." He then taught us, "Greetings to Allah, prayers, and good deeds. Peace be upon you, O Prophet, 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 Messenger. So when you say this, you have encompassed every angel, every prophet, and every righteous servant in your words."
كُنَّا نَقُولُ فِي الصَّلَاةِ السَّلَامُ عَلَى اللهِ السَّلَامُ عَلَى جِبْرِيلَ وَمِيكَائِيلَ وَكُلِّ مَلَكٍ نَعْلَمُ اسْمَهُ فَقَالَ رَسُولُ اللهِ ﷺ «لَا تَقُولُوا السَّلَامُ عَلَى اللهِ؛ فَإِنَّ اللهَ هُوَ السَّلَامُ» ثُمَّ عَلَّمَنَا «التَّحِيَّاتُ لِلَّهِ وَالصَّلَوَاتُ وَالطَّيِّبَاتُ السَّلَامُ عَلَيْكَ أَيُّهَا النَّبِيُّ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ السَّلَامُ عَلَيْنَا وَعَلَى عِبَادِ اللهِ الصَّالِحِينَ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَشْهَدُ أَنَّ مُحَمَّدًا عَبْدُهُ وَرَسُولُهُ فَإِذَا قُلْتُمْ هَذَا فَقَدْ دَخَلَ فِي قَوْلِكُمْ كُلُّ مَلَكٍ وَكُلُّ نَبِيٍّ وَكُلُّ عَبْدٍ صَالِحٍ»