Entering the House:
Allah(Swt) says in the Glorious Quran:
“
But when you enter the houses, greet one another with a greeting from Allah (i.e. say: As-Salamu Alaikum – peace be on you) blessed and good. Thus Allah makes clear the Ayat (these Verses or your religious symbols and signs, etc.) to you that you may understand.
“
[Quran-24:61]
Allah(Swt) also says:
“When you are greeted with a greeting, greet in return with what is better than it, or (at least) return it equally. Certainly, Allâh is Ever a Careful Account Taker of all things.”[Quran-4:86]
The Prophet (peace_be_upon_him) said:
When a man goes into his house, he should say: “O Allah! I ask Thee for good both when entering and when going out; in the name of Allah we have entered, and in the name of Allah we have gone out, and in Allah or Lord do we trust.” He should then greet his family. [Dawud :: Book 41 : Hadith 5077]
Leaving the House: