The Prophet (ﷺ) said, "Whoever takes up arms against us, is not from us."
Sahih al-Bukhari Book 92, Hadith 22