Sunan Ibn Majah, Book 4, Hadith 3 (Ibn Majah 737)

It was narrated that 'Ali bin Abu Talib said:

"The Messenger of Allah said: 'Whoever builds a mosque for the sake of Allah (from his own wealth), Allah will build a house for him in Paradise.'"