Abdullah bin Masud reported,

The Messenger of Allah ﷺ taught us the openings of all that is good and its comprehensive meanings, or the comprehensive meanings of good and its openings. We did not know what to say in our prayer until he taught us, saying, "Say, 'All greetings, prayers, and pure words 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. I bear witness that there is no god but Allah, and I bear witness that Muhammad is His servant and His Messenger.'"

Ahmad 3877

Sahih

حدثنا عبد الرزاق حدثنا معمر عن أبي إسحاق عن أبي الأحوص

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

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

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