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

Abu Huraira reported:

The Messenger of Allah (ﷺ) found some people absenting from certain prayers and he said: I intend that I order (a) person to lead people in prayer, and then go to the persons who do not join the (congregational prayer) and then order their houses to be burnt by the bundles of fuel. If one amongst them were to know that he would find a fat fleshy bone he would attend the night prayer.
وَحَدَّثَنِي عَمْرٌو النَّاقِدُ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم فَقَدَ نَاسًا فِي بَعْضِ الصَّلَوَاتِ فَقَالَ ‏ "‏ لَقَدْ هَمَمْتُ أَنْ آمُرَ رَجُلاً يُصَلِّي بِالنَّاسِ ثُمَّ أُخَالِفَ إِلَى رِجَالٍ يَتَخَلَّفُونَ عَنْهَا فَآمُرَ بِهِمْ فَيُحَرِّقُوا عَلَيْهِمْ بِحُزَمِ الْحَطَبِ بُيُوتَهُمْ وَلَوْ عَلِمَ أَحَدُهُمْ أَنَّهُ يَجِدُ عَظْمًا سَمِينًا لَشَهِدَهَا ‏"‏ ‏.‏ يَعْنِي صَلاَةَ الْعِشَاءِ ‏.‏
Reference : Sahih Muslim 651a
In-book reference : Book 5, Hadith 314
USC-MSA web (English) reference : Book 4, Hadith 1369
  (deprecated numbering scheme)