It is narrated from Sayyiduna Uthman bin Affan (may Allah be pleased with him): I heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever builds a mosque for the pleasure of Allah, Allah Almighty will build for him a house like it in Paradise; and whoever deliberately attributes a lie to me, let him take his seat in the fire of Hell."
I say: The account of building the mosque is mentioned in the Sahih (of Bukhari and Muslim).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 321
Hadith Gradingمحدثین:إسناده حسن، وقصة بناء المسجد صحيحة