Bulugh al-Maram 418
وَعَنْ أُبَيِّ بْنِ كَعْبٍ - رضي الله عنه - قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «صَلَاةُ الرَّجُلِ مَعَ الرَّجُلِ أَزْكَى مِنْ صَلَاتِهِ وَحْدَهُ, وَصَلَاتُهُ مَعَ الرَّجُلَيْنِ أَزْكَى مِنْ صَلَاتِهِ مَعَ الرَّجُلِ, وَمَا كَانَ أَكْثَرَ فَهُوَ أَحَبُّ إِلَى اللَّهِ - عز وجل». رَوَاهُ أَبُو دَاوُدَ, وَالنَّسَائِيُّ, وَصَحَّحَهُ ابْنُ حِبَّانَ.
Ubayy ibn Kaʿb, may Allah be pleased with him, said: The Messenger of Allah ﷺ said: "A man's prayer with another man is purer than his prayer alone, and his prayer with two men is purer than his prayer with one man, and the more there are, the more beloved it is to Allah, Mighty and Majestic." Reported by Abu Dawud and an-Nasaʾi, and Ibn Hibban graded it sahih.