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).[Muslim].
App reference: Book 9, Hadith 79
Arabic/English book reference: Book 9, Hadith 1069