It is narrated from the Companions of the Messenger of Allah (peace and blessings be upon him) (may Allah be pleased with them) that they said: "Indeed the mosques are the houses of Allah Almighty on the earth."
This chain is mawquf (stopping at the Companions), and all its narrators are thiqat (trustworthy).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 968