Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:3123ʿAbd b. Ḥumayd > ʿUthmān b. ʿUmar > Mālik b. Mighwal > Junayd > Ibn ʿUmar

that the Prophet ﷺ said: "There are seven gates of Jahannam: Among them a gate for whoever carries a sword against my Ummah." Or he said: "Against the Ummah of Muhammad."  

الترمذي:٣١٢٣حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ حَدَّثَنَا عُثْمَانُ بْنُ عُمَرَ عَنْ مَالِكِ بْنِ مِغْوَلٍ عَنْ جُنَيْدٍ عَنِ ابْنِ عُمَرَ

عَنِ النَّبِيِّ ﷺ قَالَ لِجَهَنَّمَ سَبْعَةُ أَبْوَابٍ بَابٌ مِنْهَا لِمَنْ سَلَّ السَّيْفَ عَلَى أُمَّتِي أَوْ قَالَ عَلَى أُمَّةِ مُحَمَّدٍ ﷺ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ غَرِيبٌ لاَ نَعْرِفُهُ إِلاَّ مِنْ حَدِيثِ مَالِكِ بْنِ مِغْوَلٍ

See similar narrations below:

Collected by Aḥmad, Suyūṭī
ahmad:5689ʿUthmān b. ʿUmar > Mālik b. Mighwal > Junayd > Ibn ʿUmar

that the Prophet ﷺ said: "There are seven gates of Jahannam: Among them a gate for whoever carries a sword against my Ummah." Or he said: "Against the Ummah of Muhammad." (Using translation from Tirmidhī 3123)   

أحمد:٥٦٨٩حَدَّثَنَا عُثْمَانُ بْنُ عُمَرَ أَخْبَرَنَا مَالِكُ بْنُ مِغْوَلٍ عَنْ جُنَيْدٍ عَنِ ابْنِ عُمَرَ

أَنَّهُ سَمِعَ النَّبِيَّ ﷺ يَقُولُ لِجَهَنَّمَ سَبْعَةُ أَبْوَابٍ بَابٌ مِنْهَا لِمَنْ سَلَّ سَيْفَهُ عَلَى أُمَّتِي أَوْ قَالَ أُمَّةِ مُحَمَّدٍ