عن أَبي هريرة - رضي الله عنه - في حديثِ المسِيءِ صلاته: أنّه جَاءَ فَصَلَّى، ثُمَّ جَاءَ إِلَى النَّبيِّ - صلى الله عليه وسلم - فَسَلَّمَ عَلَيْهِ، فَرَدَّ عَلَيْهِ السَّلاَمَ، فَقَالَ: «ارْجِعْ فَصَلِّ فَإنَّكَ لَمْ تُصَلِّ» فَرَجَعَ فَصَلَّى، ثُمَّ جَاءَ فَسَلَّمَ عَلَى النَّبيِّ - صلى الله عليه وسلم - حَتَّى فَعَلَ ذَلِكَ ثَلاثَ مَرَّاتٍ. متفقٌ عَلَيْهِ.
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him), in the hadith of the man who performed his prayer badly, that he came and prayed, then came to the Prophet (peace and blessings be upon him) and greeted him. He (peace and blessings be upon him) returned his greeting and said: "Go back and pray, for you have not prayed." So he went back and prayed, then came and greeted the Prophet (peace and blessings be upon him), until he had done that three times.
(Agreed upon)
وعنه، عن رسول الله - صلى الله عليه وسلم - قَالَ: «إِذَا لَقِيَ أَحَدُكُمْ أخَاهُ فَلْيُسَلِّمْ عَلَيْهِ، فَإنْ حَالَتْ بَيْنَهُمَا شَجَرَةٌ، أَوْ جِدَارٌ، أَوْ حَجَرٌ، ثُمَّ لَقِيَهُ، فَلْيُسَلِّمْ عَلَيْهِ». رواه أَبُو داود.
It is narrated from him (Sayyiduna Abu Hurayrah, may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you meets his brother, let him greet him; then if a tree, a wall or a rock comes between them and then he meets him (again), let him greet him (again)."
(Narrated by Abu Dawud)