Mishkat al-Masabih
Mishkat al-Masabih 3694
عَن الحارِثِ الْأَشْعَرِيِّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " آمُرُكُمْ بِخَمْسٍ: بِالْجَمَاعَةِ وَالسَّمْعِ وَالطَّاعَةِ وَالْهِجْرَةِ وَالْجِهَادِ فِي سَبِيلِ اللَّهِ وَإِنَّهُ مَنْ خَرَجَ مِنَ الْجَمَاعَةِ قِيدَ شِبْرٍ فَقَدْ خَلَعَ رِبْقَةَ الْإِسْلَامِ مِنْ عُنُقِهِ إِلَّا أَنْ يُرَاجِعَ وَمَنْ دَعَا بِدَعْوَى الْجَاهِلِيَّةِ فَهُوَ مِنْ جُثَى جَهَنَّمَ وَإِنْ صَامَ وَصَلَّى وَزَعَمَ أَنَّهُ مُسْلِمٌ ". رَوَاهُ أَحْمد وَالتِّرْمِذِيّ
Al-Harith al-Ashari reported that the Messenger of God said: I command you to observe the community, to listen and obey, to emigrate, and to strive in God's cause. Whoever leaves the community by even a handspan has removed the bond of Islam from his neck, unless he returns. Whoever calls to the ways of the Age of Ignorance is among the heaps of Hell, even if he fasts, prays, and claims to be a Muslim. Ahmad and al-Tirmidhi transmitted it.
Translation notes
The Arabic lists five commands: community, listening, obedience, emigration, and striving in God's cause.