The Messenger of Allah ﷺ said, "The reward for prayer performed by a person in congregation is more than twenty times greater than that of the prayer performed in one’s house or the marketplace. When one performs wuḍūʾ perfectly and then proceeds to the mosque with the sole intention of performing prayer, then for every step he takes towards the mosque, he is upgraded one degree in reward and one of his sins is eliminated until he enters the mosque."
"And when he enters the mosque, he is considered as performing prayer as long as it is the prayer which stops him ˹from leaving the mosque˺; and the angels keep on supplicating Allah for him as long as he remains in his place of prayer. They say: ‘O Allah! Have mercy on him; O Allah! forgive his sins; O Allah! accept his repentance.' ˹This continues, so long as he does cause harm ˹upon anyone˺ in it, or pass wind in it ˹breaking his wuḍūʾ˺ (in a different wording: or speak ˹to anyone˺).”
قَالَ رَسُولُ اللَّهِ ﷺ: «صَلاَةُ الرَّجُلِ فِي جَمَاعَةٍ تَزِيدُ عَلَى صَلاَتِهِ فِي بَيْتِهِ وَصَلاَتِهِ فِي سُوقِهِ بِضْعًا وَعِشْرِينَ دَرَجَةً، وَذَلِكَ أَنَّ أَحَدَهُمْ إِذَا تَوَضَّأَ فَأَحْسَنَ الْوُضُوءَ، ثُمَّ أَتَى الْمَسْجِدَ لاَ يَنْهَزُهُ إِلاَّ الصَّلاَةُ لاَ يُرِيدُ إِلاَّ الصَّلاَةَ، فَلَمْ يَخْطُ خَطْوَةً إِلاَّ رُفِعَ لَهُ بِهَا دَرَجَةٌ وَحُطَّ عَنْهُ بِهَا خَطِيئَةٌ، حَتَّى يَدْخُلَ الْمَسْجِدَ۔»
«فَإِذَا دَخَلَ الْمَسْجِدَ كَانَ فِي الصَّلاَةِ مَا كَانَتِ الصَّلاَةُ هِيَ تَحْبِسُهُ وَالْمَلاَئِكَةُ يُصَلُّونَ عَلَى أَحَدِكُمْ مَا دَامَ فِي مَجْلِسِهِ الَّذِي صَلَّى فِيهِ، يَقُولُونَ اللَّهُمَّ ارْحَمْهُ، اللَّهُمَّ اغْفِرْ لَهُ، اللَّهُمَّ تُبْ عَلَيْهِ، مَا لَمْ يُؤْذِ فِيهِ مَا لَمْ يُحْدِثْ فِيهِ۔»