The Messenger of Allah ﷺ said, "A man's prayer in congregation surpasses his prayer at home and his prayer in the marketplace by twenty-some degrees."
حدثنا أبو بكر بن أبي شيبة حدثنا أبو معاوية عن الأعمش عن أبي صالح
قال رسول الله ﷺ صلاة الرجل في جماعة تزيد على صلاته في بيته وصلاته في سوقه بضعا وعشرين درجة
Bukhari narrated it in the Book of Prayer, Chapter on Prayer in the masjid of the market, hadith no. 477, and Muslim narrated it in the Book of Masjids, Chapter on the virtue of praying in congregation and the emphasis regarding it, etc., hadith no. 649, from the hadith of Abu Muawiya with this chain.