Zayd bin Salam reported,

Harith al-Ashari reported that the Prophet ﷺ said, in a long hadith, "I command you with five things that Allah has commanded me with: listening and obeying, jihad, migration, and holding to the community. Whoever departs from the community by even a handspan has cast off the yoke of Islam from his neck unless he returns. And whoever calls with the call of the days of ignorance is among the kneeling crowds of Hell."A man asked, "Messenger of Allah, even if he prays and fasts?"He replied, "Even if he prays and fasts. So call by the call of Allah, who has named you Muslims, believers, the servants of Allah."

Azami 12814

Sahih

عن زيد بن سلام حدثه

أن الحارث الأشعري حدثه: أن النبي ﷺ قال في حديث طويل: وأنا آمركم بخمس الله أمرني بهن: السمع والطاعة، والجهاد، والهجرة، والجماعة، فإن من فارق الجماعة قيد شبر فقد خلع ربقة الإسلام من عنقه إلا أن يراجع، ومن ادعى دعوى الجاهلية، فإنه من جثا جهنم. فقال رجل: يا رسول الله! وإن صلى وصام؟ قال: وإن صلى وصام، فادعوا بدعوى الله الذي سماكم المسلمين المؤمنين عباد الله.

الأعظمي 12814صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Anbiya
Section
His saying, "O people, an example is set forth, so listen to it. Indeed, those you invoke besides Allah will never create even a fly, even if they gathered together for it. And if the fly should steal anything from them, they could not recover it from it. Weak is the pursuer and the pursued." That is, if all that you worship besides Allah عز وجل were to gather, they could not create a single fly, rather they could not even create an atom, as was narrated in the Sahih
Numbering
Jami al-Kamil 12814 (2nd edition)
Azami 12814