It is narrated from Hazrat Abdullah bin Busr (may Allah be pleased with him) that when the Prophet (peace and blessings be upon him) would go to someone's house, he would stand behind the wall, not directly in front of the door. Then he would seek permission; if permission was granted, he would enter, otherwise he would return.