كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
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 c

Ibn Numair reported it on the authority of his father (a preference of) more than twenty (degrees) and Abu Bakr in his narration (has narrated it) twenty- seven degrees.

وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، وَابْنُ، نُمَيْرٍ ح قَالَ وَحَدَّثَنَا ابْنُ نُمَيْرٍ، حَدَّثَنَا أَبِي قَالاَ، حَدَّثَنَا عُبَيْدُ اللَّهِ، بِهَذَا الإِسْنَادِ ‏.‏ قَالَ ابْنُ نُمَيْرٍ عَنْ أَبِيهِ، ‏"‏ بِضْعًا وَعِشْرِينَ ‏"‏ ‏.‏ وَقَالَ أَبُو بَكْرٍ فِي رِوَايَتِهِ ‏"‏ سَبْعًا وَعِشْرِينَ دَرَجَةً ‏"‏ ‏.‏
Reference : Sahih Muslim 650c
In-book reference : Book 5, Hadith 312
USC-MSA web (English) reference : Book 4, Hadith 1367
  (deprecated numbering scheme)