Abdullah bin Masud reported,

We used to say during prayer behind the Messenger of Allah ﷺ, "Peace be upon Allah, peace be upon so-and-so."One day the Messenger of Allah ﷺ said to us, "Allah Himself is Peace. When one of you sits during the prayer, let him say, 'All greetings, prayers, and good things are for 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.' When he says this, it reaches every righteous servant of Allah 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 whichever supplication he wishes."

Azami 11017

Sahih

عن عبد الله بن مسعود قال

كنا نقول في الصلاة خلف رسول الله ﷺ: السلام على الله، السلام على فلان، فقال لنا رسول الله ﷺ ذات يوم: إن الله هو السلام، فإذا قعد أحدكم في الصلاة، فليقل التحيات لله، والصلوات والطيبات، السلام عليك، أيها النبي ورحمة الله وبركاته، السلام علينا، وعلى عباد الله الصالحين.- فإذا قالها أصابت كل عبد الله، صالح في السماء والأرض-، أشهد أن لا إله إلا الله، وأشهد أن محمدا عبده ورسوله، ثم يتخير من المسألة ما شاء.

الأعظمي 11017صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications of adhan and prayer, and what is related to them
Section
Different wordings of tashahhud
Numbering
Jami al-Kamil 11017 (2nd edition)
Azami 11017