The Messenger of Allah ﷺ said, "The congregational prayer is twenty-five times more virtuous than the prayer any of you offers alone."
أخبرنا قتيبة عن مالك عن ابن شهاب عن سعيد بن المسيب
أن رسول الله ﷺ قال صلاة الجماعة أفضل من صلاة أحدكم وحده خمسا وعشرين جزءا
Reported by Muslim, no. 649 (see also the preceding hadith from the hadith of Malik through the same chain, found in Muwatta (Yahya): 1/129, and Kubra, no. 912).