Sunan Ibn Majah, Book 16, Hadith 57 (Ibn Majah 2492)

It was narrated from Hudhaifah bin Yaman that the Messenger of Allah (ﷺ) said:

“Whoever sells a house and does not use the money for something similar, will not to be blessed therein.' ”