Mishkat al-Masabih 184
عَنْ مُعَاذِ بْنِ جَبَلٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ الشَّيْطَانَ ذِئْبُ الْإِنْسَانِ كَذِئْبِ الْغَنَمِ يَأْخُذُ الشَّاذَّةَ وَالْقَاصِيَةَ وَالنَّاحِيَةَ وَإِيَاكُمْ وَالشِّعَابَ وَعَلَيْكُمْ بِالْجَمَاعَةِ وَالْعَامَّةِ» . رَوَاهُ أَحْمد
From Muʿadh ibn Jabal, who said: The Messenger of Allah ﷺ said: "Shaytan is the wolf of man, like the wolf of the sheep: he takes the one that strays, the one that is far off, and the one at the edge. So beware of the mountain paths, and keep to the Jamaʿah and the general body." Reported by Ahmad.