Sahih al-Bukhari 7070
Book 92: Afflictions and the End of the World · Narrated by `Abdullah bin `Umar
Arabic
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ نَافِعٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " مَنْ حَمَلَ عَلَيْنَا السِّلاَحَ فَلَيْسَ مِنَّا ".
English translation
Narrated `Abdullah bin `Umar:Allah's Messenger (ﷺ) said, "Whoever takes up arms against us, is not from us
Reference: Sahih al-Bukhari 7070, Book of Afflictions and the End of the World. English translation by Dr. Muhammad Muhsin Khan.