It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:
"Whoever bears weapons against us is not one of us." (AR)
English reference (AR): Vol. 3, Book 20, Hadith 2575 (AR)
Arabic reference (AR): Book 20, Hadith 2673 (AR)