إِنَّمَا يَعْمُرُ مَسَاجِدَ اللّهِ مَنْ آمَنَ بِاللّهِ وَالْيَوْمِ الآخِرِ وَأَقَامَ الصَّلاَةَ وَآتَى الزَّكَاةَ وَلَمْ يَخْشَ إِلاَّ اللّهَ فَعَسَى أُوْلَئِكَ أَن يَكُونُواْ مِنَ الْمُهْتَدِينَ
﴿١٨﴾
سورة التوبة
(9/18) None should build the mosques of Allah except those who believe in Allah and the latter day (to have the spirit return back to Allah before death) and keep up the prayer and pay Alms (the Zakât) and fear none but Allah. So as for these, it may be that they are of those who have attained to Guidance (Hidayet).
Surah At-Tawbah