Abu Hurairah reported,

The Prophet ﷺ said, "Whoever withdraws from obedience and separates from the community, then dies, dies the death of the days of ignorance. Whoever fights under a blind banner, becoming angry for the sake of tribal partisanship, or calling to tribal partisanship, or supporting tribal partisanship, and is killed, his death is the death of the days of ignorance. Whoever rebels against my nation, striking down its righteous and its wicked alike, sparing none of its believers, and not honoring the pledge given to one with whom a covenant was made, he is not of me, and I am not of him."

Azami 15013

Sahih

عن أبي هريرة

عن النبي ﷺ أنه قال: من خرج من الطاعة، وفارق الجماعة فمات، مات ميتة جاهلية، ومن قاتل تحت راية عمية يغضب لعصبة، أو يدعو إلى عصبة، أو ينصر عصبة، فقتل، فقتلة جاهلية، ومن خرج على أمتي، يضرب برها وفاجرها، ولا يتحاشى من مؤمنها، ولا يفي لذي عهد عهده، فليس مني ولست منه.

الأعظمي 15013صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Vices of character
Section
Condemnation of tribalism
Numbering
Jami al-Kamil 15013 (2nd edition)
Azami 15013