The Prophet ﷺ said, "Whoever takes up arms against us is not one of us."
حدثنا أبو كريب وأبو السائب سلم بن جنادة قالا حدثنا أبو أسامة عن بريد بن عبد الله بن أبي بردة عن جده أبي بردة
عن النبي ﷺ قال من حمل علينا السلاح فليس منا
Agreed upon. Bukhari narrated it in the Book of Fitnah, Chapter on the saying of the Prophet ﷺ, "Whoever carries weapons against us is not one of us," hadith 7071, from Abu Kurayb, and Muslim, hadith 100, through Abu Usama with the same wording.On this topic there are also narrations from Ibn Umar [Muslim, hadith 98], Ibn Zubayr [Nasai 7/117, hadith 4102, and Tahawi in Mushkil Athar 2/117], Abu Hurairah [Muslim, hadith 101], and Salama bin Akwa [Muslim, hadith 99].