Sahih Muslim
100

It is narrated on the authority of Abu Musa Ash'ari:He who took up arms against us is not of us