Ali reported that the Messenger of Allah ﷺ said, "Whoever carries arms against us is not one of us."
عن رسول الله ﷺ قال: من حمل علينا السلاح فليس منا.
Bukhari narrated it in the chapter on tribulations (7071), and Muslim in the chapter on faith (100), both of them through the route of Abu Usama, from Bureid, from Abu Burda, from Abu Musa, who related it.