The Prophet ﷺ said, "I had it in mind to order my young men to gather bundles of firewood, then order that the call to prayer be given and the prayer established, and then to burn down the houses of those who do not attend the prayer."
حدثنا هناد حدثنا وكيع عن جعفر بن برقان عن يزيد بن الأصم
عن النبي ﷺ قال لقد هممت أن آمر فتيتي أن يجمعوا حزم الحطب ثم آمر بالصلاة فتقام ثم أحرق على أقوام لا يشهدون الصلاة
Agreed upon [by Bukhari and Muslim]. Muslim narrated it, see the previous hadith, no. 651, from the hadith of Waki, and Bukhari, Adhan, chapter on the obligation of congregational prayer, no. 644, from the hadith of Abu Hurairah, with similar wording.On this topic there are also narrations from Abdullah bin Masud [Muslim, no. 654], Abu Darda [Abu Dawud, no. 547], Ibn Abbas [Abu Dawud, no. 551], Muaz bin Anas [Ahmad 3/439], and Jabir [Abu Dawud Tayalisi, no. 1717].