Sahih al-Bukhari 831
797 حدثنا أبو نعيم قال حدثنا الأعمش عن شقيق بن سلمة قال قال عبد الله كنا إذا صلينا خلف النبي صلى الله عليه وسلم قلنا السلام على جبريل وميكائيل السلام على فلان وفلان فالتفت إلينا رسول الله صلى الله عليه وسلم فقال إن الله هو السلام فإذا صلى أحدكم فليقل التحيات لله والصلوات والطيبات السلام عليك أيها النبي ورحمة الله وبركاته السلام علينا وعلى عباد الله الصالحين فإنكم إذا قلتموها أصابت كل عبد لله صالح في السماء والأرض أشهد أن لا إله إلا الله وأشهد أن محمدا عبده ورسوله \ 1 \
797 Abu Nu'aym related to us, he said: al-A'mash related to us, from Shaqiq ibn Salama, who said: Abd Allah said: When we prayed behind the Prophet ﷺ, we would say: Peace be upon Jibril and Mika'il, peace be upon so-and-so and so-and-so. The Messenger of Allah ﷺ turned to us and said: Allah is Himself as-Salam (Peace). So when one of you prays, let him say: All greetings are for Allah, and the prayers and the good things. 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. For when you say it, it reaches every righteous servant of Allah in the heaven and the earth. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and His Messenger.
Indicative translation