Ubay ibn Ka’b reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, the first row of prayer resembles the rows of angels. If you knew its virtue, you would compete for it. The prayer of a man with another man is more purifying than his prayer alone, and his prayer with two men is more purifying than his prayer with one man. The more people there are, the more beloved it is to Allah Almighty.”
Source: Sunan Abī Dāwūd 554
Grade: Sahih (authentic) according to Al-Arna’ut
عَنْ أُبَيِّ بْنِ كَعْبٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّ الصَّفَّ الْأَوَّلَ عَلَى مِثْلِ صَفِّ الْمَلَائِكَةِ وَلَوْ عَلِمْتُمْ مَا فَضِيلَتُهُ لَابْتَدَرْتُمُوهُ وَإِنَّ صَلَاةَ الرَّجُلِ مَعَ الرَّجُلِ أَزْكَى مِنْ صَلَاتِهِ وَحْدَهُ وَصَلَاتُهُ مَعَ الرَّجُلَيْنِ أَزْكَى مِنْ صَلَاتِهِ مَعَ الرَّجُلِ وَمَا كَثُرَ فَهُوَ أَحَبُّ إِلَى اللَّهِ تَعَالَى
554 سنن أبي داود كتاب الصلاة باب في فضل صلاة الجماعة
1/416 المحدث شعيب الأرناؤوط خلاصة حكم المحدث حسن صحيح في تخريج سنن أبي داود