Hadithcore
Hadith #2105140

Narrated 'Ubai bin Ka'b (RA):

Allah's Messenger (ﷺ) said: "A man's prayer offered with another man is purer than his prayer which he offers alone, and his prayer with two men is purer than his prayer with one and if they are more (in number), it is more beloved to Allah, the Mighty the Majestic." [Reported by Abu Dawud and an-Nasa'i. And Ibn Hibban graded it Sahih (authentic)].

وَعَنْ أُبَيِّ بْنِ كَعْبٍ ‏- رضى الله عنه ‏- قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ صَلَاةُ اَلرَّجُلِ مَعَ اَلرَّجُلِ أَزْكَى مِنْ صَلَاتِهِ وَحْدَهُ, وَصَلَاتُهُ مَعَ اَلرَّجُلَيْنِ أَزْكَى مِنْ صَلَاتِهِ مَعَ اَلرَّجُلِ, وَمَا كَانَ أَكْثَرَ فَهُوَ أَحَبُّ إِلَى اَللَّهِ عَزَّ وَجَلَّ } رَوَاهُ أَبُو دَاوُدَ, وَالنَّسَائِيُّ, وَصَحَّحَهُ اِبْنُ حِبَّان َ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 2, Hadith 330
Arabic/English book reference
Book 2, Hadith 418