Abdullah bin Masud reported,

The Messenger of Allah ﷺ taught me the tashahhud with my hand between his hands, just as he would teach me a surah from the Quran. He said, "All greetings, prayers, and pure words 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. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and His Messenger."This was while he was still among us. After he passed away, we said, "Peace be upon the Prophet."

Ahmad 3935

Sahih

حدثنا أبو نعيم حدثنا سيف قال سمعت مجاهدا يقول حدثني عبد الله بن سخبرة أبو معمر قال سمعت

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

علمني رسول الله ﷺ التشهد كفي بين كفيه كما يعلمني السورة من القرآن قال التحيات لله والصلوات والطيبات السلام عليك أيها النبي ورحمة الله وبركاته السلام علينا وعلى عباد الله الصالحين أشهد أن لا إله إلا الله وأشهد أن محمدا عبده ورسوله وهو بين ظهرانينا فلما قبض قلنا السلام على النبي

أحمد 3935صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Masud
Numbering
Darussalam 3935
Ahmad 3935