Mughira bin Abdul-Rahman narrated to us from Ibn Ajlan, from his father, from Abu Hurairah. And Anas bin Iyad narrated to us from Abu Mashar, from Muhammad bin Kaab and Musa bin Yasar, from Abu Hurairah, that the Prophet ﷺ said, "Whoever takes up arms against us is not one of us."
حدثنا يعقوب بن حميد بن كاسب حدثنا عبد العزيز بن أبي حازم عن سهيل بن أبي صالح عن أبيه
و حدثنا المغيرة بن عبد الرحمن عن ابن عجلان عن أبيه عن أبي هريرة قال و حدثنا أنس بن عياض عن أبي معشر عن محمد بن كعب وموسى بن يسار عن أبي هريرة أن النبي ﷺ قال من حمل علينا السلاح فليس منا
Muslim narrated it, Book of Faith, Chapter on the Prophet's ﷺ statement, "Whoever cheats us is not one of us," no. 101, from the hadith of Ibn Hazim, through this same chain.