Sunan an-Nasa'i, Hadith 1313 ⓘ
It was narrated from 'Ali- who is bin Yahya- from his father that: A paternal uncle of his who was present at Badr told him, that a man entered the masjid and prayed, and the Messenger of Allah was watching, but we did not realize. When he had finished, he came and greeted the Messenger of Allah with salam. He said: "Go back and pray, for you have not prayed." So he went back and prayed, then he came to the Messenger of Allah and he said: "Go back and pray, for you have not prayed." (This happened) two or three times. Then the man said to him: "By the One who has honored you, O Messenger of Allah, I have tried my best; teach me." He said: "When you get up to pray, perform wudu and do it well, then turn to face the Qiblah and say the takbir. Then recite the Quran, then bow until you are at ease in bowing. Then stand up until you are standing straight, then prostrate until you are at ease prostrating, then sit up until you are at ease sitting, then prostrate until you are at ease prostrating, then get up, and continue doing that until you have finished your prayer."
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا اللَّيْثُ، عَنِ ابْنِ عَجْلاَنَ، عَنْ عَلِيٍّ، - وَهُوَ ابْنُ يَحْيَى - عَنْ أَبِيهِ، عَنْ عَمٍّ، لَهُ بَدْرِيٍّ أَنَّهُ حَدَّثَهُ أَنَّ رَجُلاً دَخَلَ الْمَسْجِدَ فَصَلَّى وَرَسُولُ اللَّهِ صلى الله عليه وسلم يَرْمُقُهُ وَنَحْنُ لاَ نَشْعُرُ فَلَمَّا فَرَغَ أَقْبَلَ فَسَلَّمَ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ " ارْجِعْ فَصَلِّ فَإِنَّكَ لَمْ تُصَلِّ " . فَرَجَعَ فَصَلَّى ثُمَّ أَقْبَلَ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ " ارْجِعْ فَصَلِّ فَإِنَّكَ لَمْ تُصَلِّ " . مَرَّتَيْنِ أَوْ ثَلاَثًا . فَقَالَ لَهُ الرَّجُلُ وَالَّذِي أَكْرَمَكَ يَا رَسُولَ اللَّهِ لَقَدْ جَهِدْتُ فَعَلِّمْنِي فَقَالَ " إِذَا قُمْتَ تُرِيدُ الصَّلاَةَ فَتَوَضَّأْ فَأَحْسِنْ وُضُوءَكَ ثُمَّ اسْتَقْبِلِ الْقِبْلَةَ فَكَبِّرْ ثُمَّ اقْرَأْ ثُمَّ ارْكَعْ فَاطْمَئِنَّ رَاكِعًا ثُمَّ ارْفَعْ حَتَّى تَعْتَدِلَ قَائِمًا ثُمَّ اسْجُدْ حَتَّى تَطْمَئِنَّ سَاجِدًا ثُمَّ ارْفَعْ حَتَّى تَطْمَئِنَّ قَاعِدًا ثُمَّ اسْجُدْ حَتَّى تَطْمَئِنَّ سَاجِدًا ثُمَّ ارْفَعْ ثُمَّ افْعَلْ كَذَلِكَ حَتَّى تَفْرُغَ مِنْ صَلاَتِكَ " .
also referenced under: Book 13, Hadith 135 (In-Book) & Volume 2, Book 13, Hadith 1314 (DarusSalam)