The Messenger of Allah ﷺ said: “Whoever says [the above] when leaving his house will be told: ‘You have been guided, you have been sufficed and you have been protected.’ Then one devil says to another devil: ‘How can you get to a man who has been guided, sufficed and protected?’” (Abū Dāwūd 5095, Tirmidhī 3426)
O Allah, I seek Your protection from misguiding others or being misguided; from erring or others causing me to err; from oppressing others or being oppressed; and from acting ignorantly or others acting ignorantly towards me.
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)