All praise is due to Allah, and may peace and blessings be upon the Messenger of Allah. To proceed:
Changing one's house does not, in itself, bring provision or good luck. It is incorrect to believe that moving from one place to another is an independent means of acquiring wealth, for provision is in the hands of Allah, Exalted be He, and whatever good or harm befalls a person occurs by Allah's decree.
However, if a person lives in a house and experiences repeated harm or the loss of benefits, to the point that remaining there becomes a clear source of hardship, there is nothing wrong with moving to another house, provided that the person does not believe that the first house causes harm in itself or that the new house brings provision in itself.
It is authentically reported that the Prophet ﷺ said:
“Bad omens are associated with three things: a house, a woman, and a horse.” Narrated by Al-Bukhari and Muslim.
The meaning is that Allah, Exalted be He, may make certain houses, wives, or mounts a source of harm or a loss of benefit. Moving away from them may therefore be one of the permissible means of avoiding harm, while maintaining the belief that all of this occurs according to the decree and wisdom of Allah, Exalted be He.
Shaykh Ibn ‘Uthaymin, may Allah have mercy on him, mentioned that certain houses, mounts, or wives may be associated with bad fortune, meaning that being connected with them may result in harm or the loss of benefit. Therefore, there is nothing wrong with selling a house and moving to another one, as Allah may place goodness in the place to which the person moves.
The obligation is to avoid superstition and false beliefs, while recognizing that moving is permissible when genuine harm exists, and to rely upon Allah, Exalted be He, when seeking provision and goodness.
And Allah knows best.