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