I heard the Messenger of Allah ﷺ say: If there are three men in a village or in the desert among whom prayer is not offered (in congregation), the devil has got the mastery over them. So observe (prayer) in congregation), for the wolf eats only the straggling animal. Sa'ib said: By the word Jama'ah he meant saying prayer in company or in congregation. (Using translation from Abū Dāʾūd 547)
قَالَ لِي أَبُو الدَّرْدَاءِ أَيْنَ مَسْكَنُكَ؟ فَقُلْتُ فِي خَرِبَةٍ دُونَ حِمْصَ فَقَالَ أَبُو الدَّرْدَاءِ سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ مَا مِنْ ثَلَاثَةٍ فِي قَرْيَةٍ وَلَا بَدْوٍ لَا تُقَامُ فِيهِمُ الصَّلَاةُ إِلَّا قَدِ اسْتَحْوَذَ عَلَيْهِمُ الشَّيْطَانُ فَعَلَيْكَ بِالْجَمَاعَةِ فَإِنَّمَا يَأْكُلُ الذِّئْبُ الْقَاصِيَةَ قَالَ السَّائِبُ يَعْنِي بِالْجَمَاعَةِ الْجَمَاعَةَ فِي الصَّلَاةِ