The Prophet ﷺ said, "Whoever takes up arms against us is not one of us."
حدثنا يحيى عن عبيد الله أخبرني نافع
عن النبي ﷺ قال من حمل علينا السلاح فليس منا
Its isnad is sahih, and it is a repetition of 4467.