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