It was narrated from Ibn 'Umar that the Messenger of Allah (ﷺ) said:"Praying in congregation is twenty-seven times better than praying alone."
أَخْبَرَنَا قُتَيْبَةُ، عَنْ مَالِكٍ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " صَلاَةُ الْجَمَاعَةِ تَفْضُلُ عَلَى صَلاَةِ الْفَذِّ بِسَبْعٍ وَعِشْرِينَ دَرَجَةً " .
Nesai
The Book of Leading the Prayer (Al-Imamah) • Hadith 837