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