Whenever we sat with the Messenger of Allah ﷺ during prayer, we used to say, "Peace be upon Allah from His servants, peace be upon so-and-so and so-and-so."The Messenger of Allah ﷺ said, "Do not say, 'Peace be upon Allah,' for Allah Himself is Peace. Rather, when any of you sits, let him say, 'All greetings, prayers, and good things belong 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.' For when you say this, it reaches every righteous servant in the heavens and the earth. 'I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and Messenger.' Then let him choose whatever supplication he likes best and pray with it."
أخبرنا يعقوب بن إبراهيم الدورقي وعمرو بن علي واللفظ له قالا حدثنا يحيى قال حدثنا سليمان الأعمش قال حدثني شقيق
كنا إذا جلسنا مع رسول الله ﷺ في الصلاة قلنا السلام على الله من عباده السلام على فلان وفلان فقال رسول الله ﷺ لا تقولوا السلام على الله فإن الله هو السلام ولكن إذا جلس أحدكم فليقل التحيات لله والصلوات والطيبات السلام عليك أيها النبي ورحمة الله وبركاته السلام علينا وعلى عباد الله الصالحين فإنكم إذا قلتم ذلك أصابت كل عبد صالح في السماء والأرض أشهد أن لا إله إلا الله وأشهد أن محمدا عبده ورسوله ثم ليتخير من الدعاء بعد أعجبه إليه يدعو به