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.' " (FR)
English reference (FR): Vol. 3, Book 16, Hadith 2491 (FR)
Arabic reference (FR): Book 16, Hadith 2586 (FR)