I heard the Prophet ﷺ say, "Whoever builds a masjid for Allah, Allah will build for him one like it in Paradise."
حدثنا بندار حدثنا أبو بكر الحنفي حدثنا عبد الحميد بن جعفر عن أبيه عن محمود بن لبيد
سمعت النبي ﷺ يقول من بنى لله مسجدا بنى الله له مثله في الجنة
[Sahih] Muslim also recorded it, no. 25/533, from the hadith of Abdul-Hameed bin Jafar with the same wording, and Bukhari recorded it, no. 450, through another route from Uthman .There are also reports on this subject from Abu Bakr [Tabarani in al-Awsat, 56/8, no. 7110], Umar [Ibn Majah, no. 735], Ali [Ibn Majah, no. 1737], Abdullah bin Amr [Ahmad, 221/2], Anas [coming up, no. 319], Ibn Abbas [Ahmad, 241/1], Ayesha [Tabarani in al-Awsat, 304/7, no. 6581, and Bazzar (Kashf), no. 404], Umm Habiba [Ibn Adi in al-Kamil, 117/30, 2579/7], Abu Dharr [Bazzar, 1/203, 204, no. 401], Amr bin Abasa, 203/1 [coming up, no. 1635], Wathila bin Asqa [Ahmad, 490/3], Abu Hurairah [Tabarani in al-Awsat, 5/323, 24, no. 4638], and Jabir bin Abdullah [Ibn Majah, no. 738].