Abdullah bin Masud reported,

Whoever wishes to meet Allah tomorrow as a Muslim, let him guard these prayers wherever the call to them is made, for Allah has prescribed for your Prophet ﷺ the ways of right guidance, and these prayers are among those ways. If you were to pray in your homes as this man who stays behind prays in his home, you would have abandoned the Sunnah of your Prophet, and if you abandoned the Sunnah of your Prophet, you would go astray.There is no man who purifies himself, doing so well, then sets out to one of these mosques, but that Allah records for him a good deed for every step he takes, raises him by it one degree, and erases by it one of his sins.I have seen a time when no one stayed behind from the prayer except a hypocrite whose hypocrisy was well known. A man would be brought, supported between two others, until he was made to stand in the row.

Muslim 1488

Sahih

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

عن عبد الله قال

من سره أن يلقى الله غدا مسلما فليحافظ على هؤلاء الصلوات حيث ينادى بهن فإن الله شرع لنبيكم ﷺ سنن الهدى وإنهن من سنن الهدى ولو أنكم صليتم في بيوتكم كما يصلي هذا المتخلف في بيته لتركتم سنة نبيكم ولو تركتم سنة نبيكم لضللتم وما من رجل يتطهر فيحسن الطهور ثم يعمد إلى مسجد من هذه المساجد إلا كتب الله له بكل خطوة يخطوها حسنة ويرفعه بها درجة ويحط عنه بها سيئة ولقد رأيتنا وما يتخلف عنها إلا منافق معلوم النفاق ولقد كان الرجل يؤتى به يهادى بين الرجلين حتى يقام في الصف

مسلم 1488صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Congregational prayer is from the practices of guidance
Numbering
Darussalam 1488
Muslim 1488