أَخْبَرَنَاهُ أَبُو عَبْدِ اللَّهِ الْحَافِظُ ، حَدَّثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ، حَدَّثَنَا إِبْرَاهِيمُ بْنُ مَرْزُوقٍ ، حَدَّثَنَا أَبُو دَاوُدَ ، وَوَهْبُ بْنُ جَرِيرٍ ، قَالَا : حَدَّثَنَا شُعْبَةُ ، عَنْ أَشْعَثَ بْنِ أَبِي الشَّعْثَاءِ ، عَنْ مُعَاوِيَةَ بْنِ سُوَيْدِ بْنِ مُقَرِّنٍ ، عَنِ الْبَرَاءِ بْنِ عَازِبٍ ، قَالَ : أَمَرَنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِسَبْعٍ ، وَنَهَانَا عَنْ سَبْعٍ ، فَذَكَرَ الْحَدِيثَ وَقَالَ فِيمَا أَمَرَ بِهِ : وَرَدِّ السَّلَامِ .
وَالْحَدِيثُ مُخَرَّجٌ فِي الصَّحِيحَيْنِ بِاللَّفْظَيْنِ .
Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) commanded us to do seven things and forbade us from seven things. Then he mentioned the whole hadith, and among the things he commanded he mentioned "returning the greeting of peace".
And this hadith is recorded in the two Sahihs (al-Bukhari and Muslim) with both wordings.