Sahih Muslim, Book 5, Hadith 308 (Muslim 1461)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

Prayer said in a congregation is equivalent to twenty-five (prayers) as compared with the prayer said by a single person.