The Messenger of Allah ﷺ said: “When a person enters his home, he should say [the above]. Then he should greet his family.” (Abū Dāwūd 5096)
The Messenger of Allah ﷺ said: “When a man enters his house and remembers Allah upon entering and before eating, Shaytān says (to his fellow shaytān): ‘There is no place for you to spend the night and there is no supper for you.’ When he enters the house and does not remember Allah, Shaytān says: ‘You have found a place to spend the night.’ When he does not remember Allah before eating his food, Shaytān says: ‘You have found a place to stay and some supper.’” (Muslim 2018)
Anas bin Mālik (raḍiyallāhu ʿanhu) narrates that the Messenger of Allah ﷺ said to me, “O my dear son, when you enter upon your family, greet them with salām as it will be a means of blessing for you and your family.” (Tirmidhī 2698)
Allah says in the Qur’an: “When you enter homes, greet each other with peace – a greeting from the very providence of Allah, blessed and wholesome.” (24:61)