Abu Ahwas reported,

Abdullah said, "I remember a time when no one stayed away from the prayer except a hypocrite whose hypocrisy was well known, or someone who was ill. Even a sick man would walk supported between two others until he reached the prayer."He also said, "The Messenger of Allah ﷺ taught us the ways of guidance, and among the ways of guidance is praying in the mosque where the call to prayer is made."

Muslim 1487

Sahih

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

عن أبي الأحوص قال

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

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