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. (Using translation from Muslim 649e)
قَالَ رَسُولُ اللهِ ﷺ صَلَاةٌ مَعَ الْإِمَامِ أَفْضَلُ مِنْ خَمْسَةٍ وَعِشْرِينَ صَلَاةً يُصَلِّيهَا وَحْدَهُ