Sahih Muslim, Book 1, Hadith 188 (Muslim 279)

It is narrated on the authority of Abu Musa Ash'ari:

He who took up arms against us is not of us.