According to the Holy Prophet (s.a.w.a.) a person who builds a new house should sacrifice a healthy sheep and distribute its meat among the poor and needy and offer this Dua:
اَللّٰهُمَّ ادْحَرْ عَنِّي مَرَدَةَ الْجِنِّ وَ الْإِنْسِ وَ الشَّيَاطِيْنِ وَ بَارِكْ لِي فِيْ بِنَائِي
ALLAAHUMMAD HAR A’NNEE MARADATAL JINNE WAL-INSE WASH-SHAYAATEENE WA BAARIK LEE FEE BENAA-EE.
O Allah! Keep me away from rebellious jins and men and devils and bless me in this house of mine.
If one recites this prayer then God will keep away the rebel devils, Jins and humans from him and safeguard him from their mischief and make house lucky for him.