Abu Salam reported that Harith al-Ashari narrated that the Prophet ﷺ said, "I command you to five things which Allah has commanded me. Listening, obedience, jihad, migration, and holding to the community. Whoever departs from the community by even a hand's span has cast off the yoke of Islam from his neck, unless he returns. Whoever calls with the call of the days of ignorance is among the kneeling masses of Hellfire."A man asked, "Messenger of Allah, even if he prays and fasts?"He replied, "Even if he prays and fasts. So call with the call of Allah, who has named you Muslims, believers, servants of Allah."
أن أبا سلام حدثه أن الحارث الأشعري حدثه: أن النبي ﷺ قال: وأنا آمركم بخمس الله أمرني بهن: السمع، والطاعة، والجهاد، والهجرة، والجماعة، فإن من فارق الجماعة قيد شبر فقد خلع ربقة الإسلام من عنقه إلا أن يرجع ومن ادعى دعوى الجاهلية فإنه من جثا جهنم فقال رجل: يا رسول الله، وإن صلى وصام؟ قال: وإن صلى وصام فادعوا بدعوى الله الذي سماكم المسلمين المؤمنين عباد الله.
Tirmidhi (2863) narrated it from Muhammad bin Ismail (Bukhari), who said, Musa bin Ismail told us, Abu Aban bin Yazid told us, Yahya bin Abu Kathir told us, from Zayd bin Salam, that Abu Salam told him, and he related it at length, and it is mentioned in the accounts of Yahya bin Zakariya. Tirmidhi said, "It is a hasan sahih gharib hadith. Muhammad bin Ismail, that is, Bukhari, said, Harith Ashari was a companion, and he has other narrations besides this one."