Mishkat al-Masabih 1072
عَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ قَالَ: لَقَدْ رَأَيْتُنَا وَمَا يَتَخَلَّفُ عَنِ الصَّلَاةِ إِلَّا مُنَافِقٌ قَدْ عُلِمَ نِفَاقُهُ أَوْ مَرِيضٌ إِنْ كَانَ الْمَرِيضُ لَيَمْشِي بَيْنَ رَجُلَيْنِ حَتَّى يَأْتِيَ الصَّلَاةَ وَقَالَ إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَلَّمَنَا سُنَنَ الْهُدَى وَإِنَّ مِنْ سُنَنِ الْهُدَى الصَّلَاةُ فِي الْمَسْجِدِ الَّذِي يُؤَذَّنُ فِيهِ وَفِي رِوَايَة: مَنْ سَرَّهُ أَنْ يَلْقَى اللَّهَ غَدًا مُسْلِمًا فليحافظ على هَؤُلَاءِ الصَّلَوَاتِ الْخَمْسِ حَيْثُ يُنَادَى بِهِنَّ فَإِنَّ اللَّهَ شرع لنبيكم صلى الله عَلَيْهِ وَسلم سُنَنَ الْهُدَى وَإِنَّهُنَّ مِنْ سُنَنِ الْهُدَى وَلَوْ أَنَّكُمْ صَلَّيْتُمْ فِي بُيُوتِكُمْ كَمَا يُصَلِّي هَذَا الْمُتَخَلِّفُ فِي بَيْتِهِ لَتَرَكْتُمْ سُنَّةَ نَبِيِّكُمْ وَلَوْ تَرَكْتُمْ سُنَّةَ نَبِيِّكُمْ لَضَلَلْتُمْ وَمَا مِنْ رَجُلٍ يَتَطَهَّرُ فَيُحْسِنُ الطُّهُورَ ثُمَّ يَعْمِدُ إِلَى مَسْجِدٍ مِنْ هَذِهِ الْمَسَاجِدِ إِلَّا كَتَبَ اللَّهُ لَهُ بِكُلِّ خُطْوَةٍ يَخْطُوهَا حَسَنَةً وَرَفَعَهُ بِهَا دَرَجَةً ويحط عَنْهُ بِهَا سَيِّئَةً وَلَقَدْ رَأَيْتُنَا وَمَا يَتَخَلَّفُ عَنْهَا إِلَّا مُنَافِقٌ مَعْلُومُ النِّفَاقِ وَلَقَدْ كَانَ الرَّجُلُ يُؤْتَى بِهِ يُهَادَى بَيْنَ الرَّجُلَيْنِ حَتَّى يُقَام فِي الصَّفّ. رَوَاهُ مُسلم
From ʿAbdullah ibn Masʿud, who said: I saw us [at a time when] no one stayed away from the prayer except a hypocrite whose hypocrisy was known, or a sick man; and the sick man would walk between two men until he came to the prayer. And he said: The Messenger of Allah ﷺ taught us the ways of guidance, and among the ways of guidance is prayer in the mosque in which the adhan is called. In a narration: Whoever would be pleased to meet Allah tomorrow as a Muslim, let him guard these five prayers where they are called, for Allah has laid down for your Prophet ﷺ the ways of guidance, and they are among the ways of guidance. If you were to pray in your houses as this one who stays behind prays in his house, you would abandon 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 and does it well, then heads for one of these mosques, except that Allah writes for him a good deed for every step he takes, raises him a degree by it, and removes a bad deed from him by it. I saw us [at a time when] no one stayed away from it except a hypocrite whose hypocrisy was known, and a man would be brought, supported between two men, until he was set in the row. Reported by Muslim.