Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "When you see a man frequenting the masjid, bear witness that he has faith, for Allah Most High has said, 'The masjids of Allah are maintained only by those who believe in Allah and the Last Day' [Tawbah 9:18]."Ibn Abu Umar narrated to us, Abdullah bin Wahb narrated to us, from Amr bin Harith, from Darraj, from Abu Haytham, from Abu Saeed, from the Prophet ﷺ, something similar, except that he said, "one who keeps up his attendance at the masjid."

Tirmidhi 3093

Daif

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

عن أبي سعيد قال

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

الترمذي 3093ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Tawbah
Numbering
Darussalam 3093
Tirmidhi 3093