It is narrated on the authority of Abu Hurairah (RA) that the Messenger of Allah (ﷺ) observed: He who took up arms against us is not of us and he who acted dishonestly towards us is not of us.
Hadith ReferenceSahih Muslim / The Book of Faith / Hadith: 101
Hadith Gradingمحدثین:أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij«أحاديث صحيح مسلم كلها صحيحة ، أخرجه ابن ماجه، في الحدود، من شهر السلاح برقم (2575) انظر ((التحفة)) برقم (12692)»