Sunan Ibn Majah, Book 4, Hadith 68 (Ibn Majah 802)

It was narrated from Abu Sa'eed that:

The Messenger of Allah said: "If you see a man frequenting the mosques, then bear witness to his faith. Allah says: 'The mosques of Allah shall be maintained only by those who believe in Allah and the Last Day. '"