Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:4933ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > al-Bāghindī > Abū Nuʿaym > Jaʿfar b. Burqān > Yazīd al-Aṣam > Abū Hurayrah

[Machine] About the Prophet ﷺ who said, "I had intended to order the call for prayer (Adhan) to be made and then command a group of young men to carry bundles of firewood and burn the houses of those who did not attend the prayer even though they could hear the Adhan, but I considered that this might cause hardship for people who were old or sick."  

البيهقي:٤٩٣٣أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا الْبَاغِنْدِيُّ ثنا أَبُو نُعَيْمٍ ثنا جَعْفَرُ بْنُ بُرْقَانَ عَنْ يَزِيدَ الْأَصَمِّ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ لَقَدْ هَمَمْتُ أَنْ آمُرَ بِالصَّلَاةِ فَتُقَامَ ثُمَّ آمُرَ بِفِتْيَانٍ مَعَهُمْ حُزَمُ الْحَطَبِ وَأُحَرِّقَ عَلَى قَوْمٍ دُورَهُمْ يَسْمَعُونَ النِّدَاءَ ثُمَّ لَا يَأْتُونَ الصَّلَاةَ  

أَخْرَجَهُ مُسْلِمٌ فِي الصَّحِيحِ مِنْ حَدِيثِ وَكِيعٍ عَنْ جَعْفَرِ بْنِ بُرْقَانَ

See similar narrations below:

Collected by Tirmidhī
tirmidhi:217Hannād > Wakīʿ > Jaʿfar b. Burqān > Yazīd b. al-Aṣam > Abū Hurayrah

the Prophet said: "I was about to order my boys to collect bundles of firewood, then order Salat to be held, then burn (the homes) of the people who did not attend the Salat."  

الترمذي:٢١٧حَدَّثَنَا هَنَّادٌ حَدَّثَنَا وَكِيعٌ عَنْ جَعْفَرِ بْنِ بُرْقَانَ عَنْ يَزِيدَ بْنِ الأَصَمِّ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ لَقَدْ هَمَمْتُ أَنْ آمُرَ فِتْيَتِي أَنْ يَجْمَعُوا حُزَمَ الْحَطَبِ ثُمَّ آمُرَ بِالصَّلاَةِ فَتُقَامَ ثُمَّ أُحَرِّقَ عَلَى أَقْوَامٍ لاَ يَشْهَدُونَ الصَّلاَةَ  

قَالَ أَبُو عِيسَى وَفِي الْبَابِ عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ وَأَبِي الدَّرْدَاءِ وَابْنِ عَبَّاسٍ وَمُعَاذِ بْنِ أَنَسٍ وَجَابِرٍ قَالَ أَبُو عِيسَى حَدِيثُ أَبِي هُرَيْرَةَ حَدِيثٌ حَسَنٌ صَحِيحٌ وَقَدْ رُوِيَ عَنْ غَيْرِ وَاحِدٍ مِنْ أَصْحَابِ النَّبِيِّ ﷺ أَنَّهُمْ قَالُوا مَنْ سَمِعَ النِّدَاءَ فَلَمْ يُجِبْ فَلاَ صَلاَةَ لَهُ وَقَالَ بَعْضُ أَهْلِ الْعِلْمِ هَذَا عَلَى التَّغْلِيظِ وَالتَّشْدِيدِ وَلاَ رُخْصَةَ لأَحَدٍ فِي تَرْكِ الْجَمَاعَةِ إِلاَّ مِنْ عُذْرٍ