ON THE SUBJECT OF 134 REPETITION OF GREETINGS; OFFERING YOUR PRAYERS CORRECTLY H H 871 "In the quotation relating to the person who was at fault in performing his prayers we are told that he came to the Prophet, praise and peace be upon him, and greeted him. The Prophet, praise and peace be upon him, returned his greeting and said, 'Go back and repeat your prayer because you have not offered it properly.' He went back, and offered his prayer then returned to the Prophet, praise and peace be upon him, and greeted him. This happened three times." R 871 Bukhari and Muslim with a chain up to Abu Hurairah who related that the Prophet, praise and peace be upon him, said this.
باب استحباب إعادة السلام عَلَى من تكرر لقاؤه عَلَى قرب بأن دخل ثم خرج ثُمَّ دخل في الحال ، أَو حال بينهما شجرة ونحوهما 859- عن أَبي هريرة رضي الله عنه في حديثِ المسِيءِ صلاته : أنّه جَاءَ فَصَلَّى ، ثُمَّ جَاءَ إِلَى النَّبيِّ صلى الله عليه وآله وسلم ، فَسَلَّمَ عَلَيْهِ ، فَرَدَّ عَلَيْهِ السَّلاَمَ ، فَقَالَ : "ارْجِعْ فَصَلِّ فَإنَّكَ لَمْ تُصَلِّ" فَرَجَعَ فَصَلَّى ، ثُمَّ جَاءَ فَسَلَّمَ عَلَى النَّبيِّ صلى الله عليه وآله وسلم ، حَتَّى فَعَلَ ذَلِكَ ثَلاثَ مَرَّاتٍ . متفقٌ عَلَيْهِ .