The Messenger of Allah ﷺ said, "A man's prayer in congregation surpasses his prayer at home or in the marketplace by some twenty-odd degrees. That is because when one of you performs ablution thoroughly, then heads to the mosque intending nothing but the prayer, with nothing driving him out except the prayer, he does not take a single step without being raised one degree by it and having a sin removed from him because of it, until he enters the mosque. Once he enters the mosque, he is considered to be in prayer for as long as the prayer keeps him there. The angels continue to send blessings upon any of you as long as he remains at the spot where he prayed, saying, 'Allah, forgive him. Allah, have mercy on him. Allah, accept his repentance,' so long as he causes no harm there and so long as he does not break his ablution there."
حدثنا أبو معاوية حدثنا الأعمش عن أبي صالح
قال رسول الله ﷺ صلاة الرجل في جماعة تزيد عن صلاته في بيته وصلاته في سوقه بضعا وعشرين درجة وذلك أن أحدكم إذا توضأ فأحسن الوضوء ثم أتى المسجد لا يريد إلا الصلاة لا ينهزه إلا الصلاة لم يخط خطوة إلا رفع له بها درجة وحط بها عنه خطيئة حتى يدخل المسجد فإذا دخل المسجد كان في صلاة ما كانت الصلاة هي تحبسه والملائكة يصلون على أحدهم ما دام في مجلسه الذي صلى فيه يقولون اللهم اغفر له اللهم ارحمه اللهم تب عليه ما لم يؤذ فيه ما لم يحدث فيه
Its isnad is sahih. Muslim related it, 1:183-184, from Abu Bakr bin Abu Shayba and Abu Kurayb, both of them from Abu Muawiya, with this isnad. Then he related it, without giving its wording, through other channels, from Amash. Bukhari related it, 1:467-468, from Musaddad, from Abu Muawiya, in similar wording, with some abridgment. He also related it, 2:112-114, and 4:285, through two other channels from Amash, in similar wording. See also 7185.His words, "twenty-odd degrees" in Bukhari's version through the channel of Abu Muawiya read, "twenty-five degrees.""Does not shake him" (la yahuzzuhu), with fatha on the ya and the ha, from the pattern of nafaa. Ibn Athir said, "Al-hazz means pushing. One says, 'the man pushed him (hazzahu), I push him (ahuzzuhu),' when he has shoved him. And one says 'he shook his head' (hazza rasahu) when he moved it." Qadi Iyad said in al-Mashariq, 2:30, "Some scholars vowel it with damma on the ya, but that is an error."