حَدَّثَنَا عَبْدُ الْأَعْلَى بْنُ حَمَّادٍ النَّرْسِيُّ ، حَدَّثَنَا يَعْقُوبُ بْنُ إِسْحَاقَ الْحَضْرَمِيُّ ، حَدَّثَنَا سَعِيدُ بْنُ خَالِدٍ ، قَالَ : حَدَّثَنِي عَبْدُ اللهِ بْنُ الْفَضْلِ ، عَنْ عُبَيْدِ اللهِ بْنِ أَبِي رَافِعٍ ، عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ ، قَالَ : قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ : يُجْزِئُ عَنِ الْجَمَاعَةِ إِذَا مَرَّتْ أَنْ يُسَلِّمَ أَحَدُهُمْ ، وَيُجْزِئُ عَنِ الْقُعُودِ أَنْ يَرُدَّ أَحَدُهُمْ .
It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When a group of people is passing by somewhere, it is sufficient on behalf of the whole group that one of them gives the greeting of salam; and likewise, it is sufficient on behalf of all those sitting that one of them returns the greeting."