He who likes to meet Allah tomorrow as Muslim, he should persevere in observing these prayers, when a call is announced for them, for Allah has laid down for your Prophet the paths of right guidance, and these (prayers) are among the paths of right guidance. If you were to pray in your houses as this man why stays away (from the mosque) prays in his house, you would abandon the practice of your Prophet, and if you were to abandon the practice of your Prophet, you would go astray. No man purifies himself, doing it well, then makes for one of those mosques without Allah recording a blessing for him for every step he takes raising him a degree for it, and effacing a sin from him for it. I have seen the time when no one stayed away from it, except a hypocrite, who was well known for his hypocrisy, whereas a man would be brought swaying (due to weakness) between two men till he was set up in a row. (Using translation from Muslim 654b)
أَنْ يَلْقَى اللهَ غَدًا مُسْلِمًا فَلْيُحَافِظْ عَلَى هَؤُلَاءِ الصَّلَوَاتِ حَيْثُ يُنَادَى بِهِنَّ فَإِنَّ اللهَ ﷻ شَرَعَ لِنَبِيِّهِ ﷺ سُنَنَ الْهُدَى فَإِنَّهُنَّ مِنْ سُنَنِ الْهُدَى وَلَوْ أَنَّكُمْ صَلَّيْتُمْ فِي بُيُوتِكُمْ كَمَا صَلَّى هَذَا الْمُتَخَلِّفُ فِي بَيْتِهِ تَرَكْتُمْ سُنَّةَ نَبِيِّكُمْ ﷺ وَلَوْ تَرَكْتُمْ سُنَّةَ نَبِيِّكُمْ ﷺ لَضَلَلْتُمْ وَمَا مِنْ رَجُلٍ تَطَهَّرَ فَيُحْسِنُ الطُّهُورَ ثُمَّ يَعْمِدُ إِلَى مَسْجِدٍ مِنْ هَذِهِ الْمَسَاجِدِ إِلَّا كَتَبَ اللهُ لَهُ بِكُلِّ خُطْوَةٍ يَخْطُوهَا حَسَنَةً وَرَفَعَهُ بِهَا دَرَجَةً وَحَطَّ عَنْهُ بِهَا سَيِّئَةً وَلَقَدْ رَأَيْتُنَا وَمَا يَتَخَلَّفُ عَنْهَا إِلَّا مُنَافِقٌ مَعْلُومُ النِّفَاقِ وَإِنْ كَانَ الرَّجُلُ يُهَادَى بَيْنَ الرَّجُلَيْنِ حَتَّى يُقَامَ فِي الصَّفِّ»