Abu Hurairah reported,

The Messenger of Allah ﷺ said, "I have considered ordering the prayer to be established, then commanding a man to lead the people in prayer, while I set out with some men carrying bundles of firewood to those who do not attend the prayer, and burn their houses down upon them with fire."

Ibn Majah 791

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا أبو معاوية عن الأعمش عن أبي صالح

عن أبي هريرة قال

قال رسول الله ﷺ لقد هممت أن آمر بالصلاة فتقام ثم آمر رجلا فيصلي بالناس ثم أنطلق برجال معهم حزم من حطب إلى قوم لا يشهدون الصلاة فأحرق عليهم بيوتهم بالنار

ابن ماجه 791صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Mosques and congregations
Chapter
Stern warning against missing the congregational prayer
Numbering
Darussalam 791
Ibn Majah 791