Hadithcore
Riyad as-Salihin, 1069

Ibn Mas'ud (May Allah be pleased with him) reported:

He who likes to meet Allah tomorrow (i.e., on the Day of Requital) as a Muslim, should take care and observe the Salat when the Adhan is announced for them. Allah has expounded to your Prophet (ﷺ) the ways of right guidance, and these (the prayers) are part of the right guidance. If you have to perform Salat in your houses, as this man who stays away (from the mosque) and performs Salat in his house, you will abandon the Sunnah (practice) of your Prophet (ﷺ), and the departure from the Sunnah of your Prophet (ﷺ) will lead you astray. I have seen the time when no one stayed behind except a well-known hypocrite. I also saw that a man was brought swaying (on account of weakness) between two men till he was set up in a row (in the mosque). <b>[Muslim]</b>.

وعن ابن مسعود رضي الله عنه قال‏:‏ من سره أن يلقى الله تعالى غدًا مسلمًا، فليحافظ على هؤلاء الصلوات، حيث ينادى بهن، فإن الله شرع لنبيكم صلى الله عليه وسلم سنن الهدى، وإنهن من سنن الهدى، ولو أنكم صليتم في بيوتكم كما يصلي هذا المتخلف في بيته لتركتم سنة نبيكم، ولو تركتم سنة نبيكم لضللتم، ولقد رأيتنا وما يتخلف عنها إلا منافق معلوم النفاق، ولقد كان الرجل يؤتى به، يهادى بين الرجلين حتى يقام في الصف‏.‏ ‏(‏‏(‏رواه مسلم وفي رواية له قال‏:‏ إن رسول الله صلى الله عليه وسلم علمنا سنن الهدى، وإن من الهدى الصلاة في المسجد الذي يؤذن فيه‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 8, Hadith 79
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) Regular performance of prayer in congregation in the place where the Adhān for it is announced is a reason for having a good end in life.<br> 2) Everything authentically reported from the Prophet (may Allah’s peace and blessings be upon him) is guidance and light. So, a believer is required to submit to the Prophet’s commands and yield to his Sunnah, which comprises all guidance and goodness.<br> 3) Deviating from the Sunnah is a reason for misguidance and error.<br> 4) Regular failure to attend congregational prayer is a sign of hypocrisy. By contrast, attending it persistently, even with difficulty, is a sign of true faith. So, to which category do you want to belong?
Related hadiths4
Compare isnād across 4 related chains →