Seeking Permission to enter someone’s house
The Prophet (sal Allahu alaihi wa sallam) said, “Permission is to be sought thrice. If it is accorded, you may enter; otherwise, go back.” He (sal Allahu alaihi wa sallam) also said, “Seeking permission to enter (somebody’s house) has been prescribed in order to restrain the eyes (from looking at something we are not supposed to look at).”
[Sahih Al-Bukhari and Muslim]
Allah says (interpretation of the meaning): “O you who believe! Enter not houses other than your own, until you have asked permission and greeted those in them.” (An-Nur 24:27)
We benefit from the above ayah and ahadith that permission should be sought before entering anyone’s home.
Within the four walls of their homes, people are normally engaged in different types of domestic chores, or they rest in seclusion.
Women understandably do things at home in a relaxed manner which is scarcely possible for them in the presence of a man not belonging to their household.
We commit an intrusion upon others’ privacy and also eye the Hijab-observing women by entering a house without permission.
Both these things are prohibited and must be avoided.
And Allah knows best!