Compiled by Imam Yahya ibn Sharaf al-Nawawi
وعن أبي سعيد الخدري رضي الله عنه عن النبي صلى الله عليه وسلم قال: "إذا رأيتم الرجل يعتاد المساجد فاشهدوا له بالإيمان، قال الله عز وجل {إنما يعمر مساجد الله من آمن بالله واليوم الآخر} ((الآية. رواه الترمذي وقال حديث حسن)).
The Messenger of Allah (ﷺ) said, "When you see a man frequenting the mosque, testify that he is a believer because Allah says: 'Allah's mosques are visited only by those who believe in Allah and the Last Day."'[At-Tirmidhi].