Jami` at-Tirmidhi, Book 2, Hadith 171 (Tirmidhi 319)

It has been related that :

the Prophet said: "Whoever builds a Masjid for (the sake of) Allah, be it small or large, then Allah will build a house for him in Paradise."