Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "When you see a man frequenting the mosques, bear witness for him that he has faith. Allah the Exalted says, 'The mosques of Allah are only maintained by those who believe in Allah'" [Tawbah 9:18].

Ibn Majah 802

Daif

حدثنا أبو كريب حدثنا رشدين بن سعد عن عمرو بن الحارث عن دراج عن أبي الهيثم

عن أبي سعيد

عن رسول الله ﷺ قال إذا رأيتم الرجل يعتاد المساجد فاشهدوا له بالإيمان قال الله تعالى {إنما يعمر مساجد الله من آمن بالله} الآية

ابن ماجه 802ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Mosques and congregations
Chapter
Staying in the mosques and waiting for the prayer
Numbering
Darussalam 802
Ibn Majah 802