A man entered the mosque and prayed while the Messenger of Allah ﷺ was in a corner of the mosque. The man then came and greeted him.The Prophet ﷺ replied, "And upon you. Go back and pray, for you have not prayed."So he went back and prayed, then came and greeted the Prophet ﷺ again.The Prophet ﷺ said, "And upon you. Go back and pray, for you still have not prayed."On the third time the man said, "Then teach me, Messenger of Allah."He said, "When you stand for prayer, perform the ablution thoroughly, then face the qiblah and say the takbir. Then recite whatever is easy for you from the Quran. Then bow until you are settled in bowing. Then rise until you are settled standing upright. Then prostrate until you are settled in prostration. Then raise your head until you are settled sitting. Then do that throughout your entire prayer."
حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن نمير عن عبيد الله بن عمر عن سعيد بن أبي سعيد
أن رجلا دخل المسجد فصلى ورسول الله ﷺ في ناحية من المسجد فجاء فسلم فقال وعليك فارجع فصل فإنك لم تصل فرجع فصلى ثم جاء فسلم على النبي ﷺ فقال وعليك فارجع فصل فإنك لم تصل بعد قال في الثالثة فعلمني يا رسول الله قال إذا قمت إلى الصلاة فأسبغ الوضوء ثم استقبل القبلة فكبر ثم اقرأ ما تيسر معك من القرآن ثم اركع حتى تطمئن راكعا ثم ارفع حتى تطمئن قائما ثم اسجد حتى تطمئن ساجدا ثم ارفع رأسك حتى تستوي قاعدا ثم افعل ذلك في صلاتك كلها
Bukhari narrated it in the Book of Seeking Permission, chapter "Whoever returns the greeting by saying, 'And peace be upon you,'" no. 6251, etc., no. 397, from the hadith of Ibn Numayr, and Muslim, the Book of Prayer, chapter "The Obligation of Reciting Fatihah in Every Rakat," with the same wording. The wording of Bukhari reads, "Then prostrate until you settle firmly in prostration, then rise until you settle firmly sitting, then prostrate until you settle firmly in prostration, then rise until you settle firmly sitting, then do that throughout your entire prayer."