I heard him say, "The Prophet ﷺ commanded us to do seven things and forbade us from seven. He commanded us to follow funeral processions, visit the sick, accept invitations, support the wronged, fulfill oaths, return greetings, and respond to the one who sneezes…" the rest of the hadith.
فسمعته يقول: أمرنا النبي ﷺ بسبع، ونهانا عن سبع: أمرنا باتباع الجنائز، وعيادة المريض، وإجابة الداعي، ونصر المظلوم، وإبرار القسم، ورد السلام، وتشميت العاطس… الحديث.
Bukhari narrated it in "Funerals" (1239), and Muslim in "Clothing and Adornment" (3:2066), both by way of Ashath bin Abu Shatha, who said, "I heard Muawiya bin Suwayd bin Muqarin narrate from Bara," and mentioned it. The wording given is that of Bukhari.