Language:
كتاب الاستئذان
79
Asking Permission
(18)
Chapter: To reply a greeting saying, "Alaikas-Salam"
(18)
باب مَنْ رَدَّ فَقَالَ عَلَيْكَ السَّلاَمُ
وَقَالَتْ عَائِشَةُ وَعَلَيْهِ السَّلاَمُ وَرَحْمَةُ اللَّهِ وَبَرَكَاتُهُ.
وَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «رَدَّ الْمَلاَئِكَةُ عَلَى آدَمَ السَّلاَمُ عَلَيْكَ وَرَحْمَةُ اللَّهِ».
Sahih al-Bukhari 6251

Narrated Abu Huraira:

A man entered the mosque while Allah's Messenger (ﷺ) was sitting in one side of the mosque. The man prayed, came, and greeted the Prophet. Allah's Messenger (ﷺ) said to him, "Wa 'Alaikas Salam (returned his greeting). Go back and pray as you have not prayed (properly)." The man returned, repeated his prayer, came back and greeted the Prophet. The Prophet (ﷺ) said, "Wa alaika-s-Salam (returned his greeting). Go back and pray again as you have not prayed (properly)." The man said at the second or third time, "O Allah's Messenger (ﷺ)! Kindly teach me how to pray". The Prophet (ﷺ) said, "When you stand for prayer, perform ablution properly and then face the Qibla and say Takbir (Allahu-Akbar), and then recite what you know from the Qur'an, and then bow with calmness till you feel at ease then rise from bowing, till you stand straight, and then prostrate calmly (and remain in prostration) till you feel at ease, and then raise (your head) and sit with calmness till you feel at ease and then prostrate with calmness (and remain in prostration) till you feel at ease, and then raise (your head) and sit with calmness till you feel at ease in the sitting position, and do likewise in whole of your prayer." And Abu Usama added, "Till you stand straight." (See Hadith No. 759, Vol.1)

حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ نُمَيْرٍ، حَدَّثَنَا عُبَيْدُ اللَّهِ، عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ الْمَقْبُرِيِّ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه أَنَّ رَجُلاً، دَخَلَ الْمَسْجِدَ وَرَسُولُ اللَّهِ صلى الله عليه وسلم جَالِسٌ فِي نَاحِيَةِ الْمَسْجِدِ فَصَلَّى، ثُمَّ جَاءَ فَسَلَّمَ عَلَيْهِ فَقَالَ لَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ وَعَلَيْكَ السَّلاَمُ ارْجِعْ فَصَلِّ فَإِنَّكَ لَمْ تُصَلِّ ‏"‏‏.‏ فَرَجَعَ فَصَلَّى، ثُمَّ جَاءَ فَسَلَّمَ‏.‏ فَقَالَ ‏"‏ وَعَلَيْكَ السَّلاَمُ فَارْجِعْ فَصَلِّ، فَإِنَّكَ لَمْ تُصَلِّ ‏"‏‏.‏ فَقَالَ فِي الثَّانِيَةِ أَوْ فِي الَّتِي بَعْدَهَا عَلِّمْنِي يَا رَسُولَ اللَّهِ‏.‏ فَقَالَ ‏"‏ إِذَا قُمْتَ إِلَى الصَّلاَةِ فَأَسْبِغِ الْوُضُوءَ، ثُمَّ اسْتَقْبِلِ الْقِبْلَةَ فَكَبِّرْ، ثُمَّ اقْرَأْ بِمَا تَيَسَّرَ مَعَكَ مِنَ الْقُرْآنِ، ثُمَّ ارْكَعْ حَتَّى تَطْمَئِنَّ رَاكِعًا، ثُمَّ ارْفَعْ حَتَّى تَسْتَوِيَ قَائِمًا، ثُمَّ اسْجُدْ حَتَّى تَطْمَئِنَّ سَاجِدًا، ثُمَّ ارْفَعْ حَتَّى تَطْمَئِنَّ جَالِسًا، ثُمَّ اسْجُدْ حَتَّى تَطْمَئِنَّ سَاجِدًا، ثُمَّ ارْفَعْ حَتَّى تَطْمَئِنَّ جَالِسًا، ثُمَّ افْعَلْ ذَلِكَ فِي صَلاَتِكَ كُلِّهَا ‏"‏‏.‏ وَقَالَ أَبُو أُسَامَةَ فِي الأَخِيرِ ‏"‏ حَتَّى تَسْتَوِيَ قَائِمًا ‏"‏‏.‏
Reference : Sahih al-Bukhari 6251
In-book reference : Book 79, Hadith 25
USC-MSA web (English) reference : Vol. 8, Book 74, Hadith 268
  (deprecated numbering scheme)