Sayyiduna Abu Sa‘id Khudri (may Allah be pleased with him) narrated that the Messenger of Allah (peace and blessings be upon him) said: “When you see a man regularly coming to the mosque, bear witness to his faith, for Allah Almighty says: Only those maintain the mosques of Allah who believe in Allah.” [توبه: 18/9]
Brief Explanation
(Commentary on Hadith 1256)
That is, coming and going to the mosque, performing prayer, serving the mosque, teaching and learning, recitation of the Qur'an, etc.—all these matters are among the characteristics of a believing servant. Whoever makes such practices his habit is a possessor of faith.