كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
5  
The Book of Mosques and Places of Prayer
(42)
Chapter: The virtue of prayer in congregation, and clarifying the stern warning against staying away from it, and that it is fard kifayah
(42)
باب فَضْلِ صَلاَةِ الجَمَاعَةِ وَبَيَانِ التَّشْدِيدِ فِي التَّخَلُّفِ عَنْهَا ‏
Sahih Muslim 650 b

Ibn 'Umar reported Allah's Apostle (ﷺ) as saying:

The prayer of a person in congregation is twenty-seven times in excess to the prayer said alone.
وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، وَمُحَمَّدُ بْنُ الْمُثَنَّى، قَالاَ حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، قَالَ أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ عُمَرَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ صَلاَةُ الرَّجُلِ فِي الْجَمَاعَةِ تَزِيدُ عَلَى صَلاَتِهِ وَحْدَهُ سَبْعًا وَعِشْرِينَ ‏"‏ ‏.‏
Reference : Sahih Muslim 650b
In-book reference : Book 5, Hadith 311
USC-MSA web (English) reference : Book 4, Hadith 1366
  (deprecated numbering scheme)