I heard the Messenger of Allah ﷺ say, "Whoever withdraws his hand from obedience will have no excuse on the Day of Resurrection, and whoever dies having separated from the community dies the death of pre-Islamic ignorance."
حدثنا عفان حدثنا خالد بن الحارث حدثنا محمد بن عجلان عن زيد بن أسلم
سمعت رسول الله ﷺ يقول من نزع يده من الطاعة فلا حجة له يوم القيامة ومن مات مفارقا للجماعة مات ميتة جاهلية