Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "When you see a man frequenting the mosque, bear witness to his faith, for Allah the Exalted says, "The mosques of Allah are only maintained by those who believe in Allah and the Last Day, establish prayer, and give zakat" [Tawbah 9:18]."

Tirmidhi 2617

Daif

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

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

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

الترمذي 2617ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Faith
Chapter
Sanctity of prayer
Numbering
Darussalam 2617
Tirmidhi 2617