Hadithcore
Riyad as-Salihin, 1405

Abu Muhammad Ka'b bin 'Ujrah (May Allah be pleased with him) reported:

The Prophet (ﷺ) came to us and we asked him, "O Messenger of Allah, we already know how to greet you (i.e., say As-salamu 'alaikum), but how should we supplicate for you?" He (ﷺ) said, "Say: 'Allahumma salli 'ala Muhammadin, wa 'ala 'ali Muhammadin, kama sallaita 'ala 'ali Ibrahima, innaka Hamidum Majid. Allahumma barik 'ala Muhammadin, wa 'ala 'ali Muhammadin, kama barakta 'ala 'ali Ibrahima, innaka Hamidum Majid <b>[O Allah, exalt the mention of Muhammad and the family of Muhammad as you exalted the family of Ibrahim. You are Praised and Glorious. O Allah, bless Muhammad and the family of Muhammad as You blessed the family of Ibrahim. You are Praised and Glorious."' <b>[Al-Bukhari and Muslim]</b>.

وعن أبي محمد كعب بن عجرة رضي الله عنه قال‏:‏ خرج علينا النبي صلى الله عليه وسلم فقلنا‏:‏ يا رسول الله، قد علمنا كيف نسلم عليك، فكيف نصلي عليك‏؟‏ قال‏:‏ ‏

‏قولوا‏:‏ اللهم صلِ على محمد، وعلى آل محمد، كما صليت على آل إبراهيم، إنك حميد مجيد‏.‏ اللهم بارك على محمد وعلى آل محمد، كما باركت على آل إبراهيم، إنك حميد مجيد‏

‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 14, Hadith 9
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) The excellence of the Companions (may Allah be pleased with them) is manifested in their keenness on seeking beneficial knowledge and asking for more of it. This is the attitude of a Muslim; he should inquire about what benefits him in his religion and leave what is beyond that.<br> 2) The invocation mentioned in the Hadith is the best one that a person may say either inside the prayer or outside it, and it is the complete form. If he settled for saying “Allāhumma salli wa sallim ‘ala Muhammad” (O Allah, send your blessings and peace upon Muhammad), it is valid as well.<br> 3) What some people do of contriving forms for invoking Allah’s peace and blessings upon the Prophet (may Allah’s peace and blessings be upon him) goes against the prophetic Sunnah and the guidance of the Companions (may Allah be pleased with them), for all good lies in following the flawless reported guidance.
Related hadiths12
Compare isnād across 12 related chains →