Translation
(92) Afflictions and the End of the World
كتاب الفتن
(7) Chapter: “Whosoever takes up arms against us, is not from us.”
(7) باب قَوْلِ النَّبِيِّ صلى الله عليه وسلم ‏"‏ مَنْ حَمَلَ عَلَيْنَا السِّلاَحَ فَلَيْسَ مِنَّا ‏"‏
Sahih al-Bukhari 7071 

Narrated Abu Musa:

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

حَدَّثَنَا مُحَمَّدُ بْنُ الْعَلاَءِ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ بُرَيْدٍ، عَنْ أَبِي بُرْدَةَ، عَنْ أَبِي مُوسَى، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ مَنْ حَمَلَ عَلَيْنَا السِّلاَحَ فَلَيْسَ مِنَّا ‏"‏‏.‏
Reference : Sahih al-Bukhari 7071
In-book reference : Book 92, Hadith 22
USC-MSA web (English) reference : Vol. 9, Book 88, Hadith 192
  (deprecated numbering scheme)