Sahih Muslim, Book 5, Hadith 309 (Muslim 1462)

Abu Huraira reported:

The Messenger of Allah (way peace be upon him) said: Prayer along with the Imam is twenty-five times more excellent than prayer said by a single person.