It was narrated from Ibn `Umar that the Messenger of Allah (ﷺ) said:
"Whoever bears weapons against us is not one of us.'" (ID)
English reference (ID): Vol. 3, Book 20, Hadith 2576 (ID)
Arabic reference (ID): Book 20, Hadith 2674 (ID)