"Whoever would like to meet Allah tomorrow (i.e. on the Day of Judgment) as a Muslim, let him preserve these five (daily) prayer when the call for them is given, for they are part of the ways of guidance, and Allah prescribed the ways of guidance to your Prophet. By Allah, if each of you prays in his house, you will have abandoned the Sunnah of your Prophet, and if you abandon the Sunnah of your Prophet you will go astray. I remember when no one stayed behind from the prayer except a hypocrite who was known for his hypocrisy. I have a man coming supported by two others, until he joined the row (of worshippers). There is no man who purifies himself and does it well, and comes to the mosque and prays there, but for every step that he takes, Allah raises him in status one degree thereby, and takes away one of his sins." (Using translation from Ibn Mājah 777)
أَنْ يَلْقَى اللهَ عَبْدًا مُسْلِمًا فَلْيُحَافِظْ عَلَى هَؤُلَاءِ الصَّلَوَاتِ الْخَمْسِ حَيْثُ يُنَادَى بِهِنَّ فَإِنَّهُنَّ مِنْ سُنَنِ الْهُدَى وَإِنَّ اللهَ قَدْ شَرَعَ لِنَبِيِّكُمْ ﷺ سُنَنَ الْهُدَى وَلَعَمْرِي لَوْ أَنَّ كُلَّكُمْ صَلَّى فِي بَيْتِهِ كَمَا يُصَلِّي الَّذِي فِي بَيْتِهِ لَتَرَكْتُمْ سُنَّةَ نَبِيِّكُمْ ﷺ وَلَوْ تَرَكْتُمْ سُنَّةَ نَبِيِّكُمْ ﷺ لَضَلَلْتُمْ وَلَقَدْ رَأَيْتُنَا وَمَا يَتَخَلَّفُ عَنْهَا إِلَّا مُنَافِقٌ مَعْلُومٌ نِفَاقُهُ وَلَقَدْ رَأَيْتُنَا وَإِنَّ الرَّجُلَ لَيُهَادَى بَيْنَ الرَّجُلَيْنِ حَتَّى يُدْخَلَ بِهِ فِي الصَّفِّ وَمَا مِنْ عَبْدٍ مُسْلِمٍ يَتَوَضَّأُ فَيُحْسِنُ الْوُضُوءَ يَعْمِدُ إِلَى مَسْجِدِ جَمَاعَةٍ فَيُصَلِّي فِيهِ فَيَخْطُو خُطْوَةً إِلَّا رَفَعَهُ اللهُ بِهَا دَرَجَةً أَوْ حَطَّ عَنْهُ بِهَا خَطِيئَةً حَتَّى إِنْ كُنَّا لَنُقَارِبُ الْخُطَا» وَاللَّفْظُ لِحَدِيثِ حَجَّاجٍ