Sahih al-Bukhari, Book 92, Hadith 22 (Bukhari 6806)

Narrated Abu Musa:

The Prophet (ﷺ) said, "Whoever takes up arms against us, is not from us."