The Messenger of Allah ﷺ said, "A man's prayer in congregation is greater than his prayer at home or in the marketplace by more than twenty degrees. That is because when one of you performs ablution properly, then heads to the mosque with no purpose other than prayer, intending nothing but the prayer, he does not take a single step without being raised one degree by it and having one sin removed from him by it, until he enters the mosque. Once he enters the mosque, he is considered to be in prayer for as long as the prayer is what is keeping him there. The angels send blessings upon one of you as long as he remains in the place where he prayed, saying, 'Allah, have mercy on him. Allah, forgive him. Allah, accept his repentance,' so long as he causes no harm there and so long as he does not break his ablution there."
حدثنا أبو بكر بن أبي شيبة وأبو كريب جميعا عن أبي معاوية قال أبو كريب حدثنا أبو معاوية عن الأعمش عن أبي صالح
قال رسول الله ﷺ صلاة الرجل في جماعة تزيد على صلاته في بيته وصلاته في سوقه بضعا وعشرين درجة وذلك أن أحدهم إذا توضأ فأحسن الوضوء ثم أتى المسجد لا ينهزه إلا الصلاة لا يريد إلا الصلاة فلم يخط خطوة إلا رفع له بها درجة وحط عنه بها خطيئة حتى يدخل المسجد فإذا دخل المسجد كان في الصلاة ما كانت الصلاة هي تحبسه والملائكة يصلون على أحدكم ما دام في مجلسه الذي صلى فيه يقولون اللهم ارحمه اللهم اغفر له اللهم تب عليه ما لم يؤذ فيه ما لم يحدث فيه