Prayer said by a man in congregation is twenty five degrees more excellent than prayer said by him alone in his house or in the market. This is because when any of you performs ablution and does it perfectly, and goes out to the mosque having no intention except praying, and nothing moves him except prayer, then at every step which he takes his rank is elevated by one degree on account of this (walking), and one sin is remitted from him for this (walking), till he enters the mosque. When he enters the mosque, he will be reckoned as praying as long as he will be detained by the prayer. The angels keep on invoking blessing on any of you so long as he remains seated in the place he prayer, saying: O Allah, forgive him; O Allah, have mercy on him; O Allah, accept his repentance so long as he does not harm anyone, or breaks his ablution. (Using translation from Abū Dāʾūd 559)
قَالَ رَسُولُ اللهِ ﷺ صَلَاةُ الرَّجُلِ فِي جَمَاعَةٍ تَزِيدُ عَنْ صَلَاتِهِ فِي بَيْتِهِ وَصَلَاتِهِ فِي سُوقِهِ بِضْعًا وَعِشْرِينَ دَرَجَةً وَذَلِكَ أَنَّ أَحَدَكُمْ إِذَا تَوَضَّأَ فَأَحْسَنَ الْوُضُوءَ ثُمَّ أَتَى الْمَسْجِدَ لَا يُرِيدُ إِلَّا الصَّلَاةَ ولَا يَنْهَزُهُ إِلَّا الصَّلَاةُ لَمْ يَخْطُ خَطْوَةً إِلَّا رُفِعَ لَهُ بِهَا دَرَجَةٌ وَحُطَّ بِهَا عَنْهُ خَطِيئَةٌ حَتَّى يَدْخُلَ الْمَسْجِدَ فَإِذَا دَخَلَ الْمَسْجِدَ كَانَ فِي صَلَاةٍ مَا كَانَتِ الصَّلَاةُ هِيَ تَحْبِسُهُ وَالْمَلَائِكَةُ يُصَلُّونَ عَلَى أَحَدِهِمْ مَا دَامَ فِي مَجْلِسِهِ الَّذِي صَلَّى فِيهِ يَقُولُونَ اللهُمَّ اغْفِرْ لَهُ اللهُمَّ ارْحَمْهُ اللهُمَّ تُبْعَلَيْهِ مَا لَمْ يُؤْذِ فِيهِ مَا لَمْ يُحْدِثْ فِيهِ