حَدَّثَنَا مُوسَى ، حَدَّثَنَا وَهْبُ بْنُ جَرِيرٍ ، حَدَّثَنَا أَبِي ، قَالَ : سَمِعْتُ قَيْسَ بْنَ سَعْدٍ يُحَدِّثُ ، عَنْ عَطَاءٍ ، عَنْ مُحَمَّدِ بْنِ عَلِيِّ بْنِ أَبِي طَالِبٍ ، عَنْ عَمَّارِ بْنِ يَاسِرٍ أَنَّهُ سَلَّمَ عَلَى النَّبِيِّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - ، وَهُوَ يُصَلِّي فَرَدَّ عَلَيْهِ السَّلَامَ .
It is narrated from Sayyiduna Ammar bin Yasir (may Allah be pleased with him) that "he greeted the Prophet (peace and blessings be upon him) with salam while he (peace and blessings be upon him) was praying, and he (peace and blessings be upon him) returned his greeting."