The Messenger of Allah ﷺ entered the mosque, and a man came in and prayed. Then he greeted the Prophet ﷺ with the greeting of peace.The Prophet ﷺ returned the greeting and said, "Go back and pray, for you have not prayed."The man went back and prayed as he had prayed before, then came and greeted the Prophet ﷺ.The Prophet ﷺ said, "Go back and pray, for you have not prayed." This happened three times.The man said, "By the One who sent you with the truth, I do not know how to do it any better. Teach me."The Prophet ﷺ said, "When you stand to pray, 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 stand upright, then prostrate until you are settled in prostration, then rise until you are settled sitting. Do this throughout your entire prayer."
حدثنا محمد بن بشار قال حدثنا يحيى عن عبيد الله قال حدثني سعيد بن أبي سعيد عن أبيه
أن رسول الله ﷺ دخل المسجد فدخل رجل فصلى فسلم على النبي ﷺ فرد وقال ارجع فصل فإنك لم تصل فرجع يصلي كما صلى ثم جاء فسلم على النبي ﷺ فقال ارجع فصل فإنك لم تصل ثلاثا فقال والذي بعثك بالحق ما أحسن غيره فعلمني فقال إذا قمت إلى الصلاة فكبر ثم اقرأ ما تيسر معك من القرآن ثم اركع حتى تطمئن راكعا ثم ارفع حتى تعدل قائما ثم اسجد حتى تطمئن ساجدا ثم ارفع حتى تطمئن جالسا وافعل ذلك في صلاتك كلها
9. Both of them (Bukhari and Muslim) transmitted the hadith of Yahya bin Saeed Qattan, from Ubaydullah, from Saeed Maqburi, from his father, from Abu Hurairah, the story of the man who prayed poorly, and the words of the Prophet, peace and blessings be upon him and his family, "Go back and pray, for you have not prayed."He said, Yahya differed here from all the companions of Ubaydullah, among them Abu Usama, Ubaydullah bin Numayr, Isa bin Yunus, and others, who transmitted it from Ubaydullah, from Saeed, from Abu Hurairah, without mentioning his father. Maamar transmitted it from Ubaydullah, from Saeed, as a mursal report going back to the Prophet, peace and blessings be upon him and his family. Yahya is a reliable memorizer (hafiz), and it seems likely that Ubaydullah narrated it both ways. And Allah knows best.