Anas bin Malik reported,

The Messenger of Allah ﷺ said, "For me to sit with a group of people remembering Allah the Exalted from the dawn prayer until the sun rises is more beloved to me than freeing four descendants of Ismail. And for me to sit with a group of people remembering Allah from the afternoon prayer until the sun sets is more beloved to me than freeing four."

Azami 3050

Hasan

عن أنس بن مالك قال

قال رسول الله ﷺ: لأن أقعد مع قوم يذكرون الله تعالى من صلاة الغداة حتى تطلع الشمس أحب إلي من أن أعتق أربعة من ولد إسماعيل، ولأن أقعد مع قوم يذكرون الله من صلاة العصر إلى أن تغرب الشمس أحب إلي من أن أعتق أربعة.

الأعظمي 3050حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Virtue of sitting in the masjid after Fajr, Asr, and Maghrib in one's place of prayer
Numbering
Jami al-Kamil 3050 (2nd edition)
Azami 3050