It was narrated from Abu Hurairah that the Messenger of Allah ﷺ said:
"Praying in congregation is twenty-five portions better than one of you praying alone."
أَخْبَرَنَا قُتَيْبَةُ، عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " صَلاَةُ الْجَمَاعَةِ أَفْضَلُ مِنْ صَلاَةِ أَحَدِكُمْ وَحْدَهُ خَمْسًا وَعِشْرِينَ جُزْءًا " .
• Sunan an-Nasa'i, 838
• Sunan an-Nasa'i, Vol. 1, Book of Leading the Prayer (Al-Imamah), Hadith 839
• Sunan an-Nasa'i, Book of Leading the Prayer (Al-Imamah), Hadith 839