Sayyiduna Abdullah bin Busr (may Allah be pleased with him) narrates: When the Prophet (peace and blessings be upon him) came to the door of a people, he would not stand directly facing the door, but would stand to its right or left side and say: "As-salamu 'alaykum (Peace be upon you)." That was because there were no curtains on those doors at that time.
Imam Abu Dawud (may Allah have mercy on him) narrated it through Mu'ammal bin al-Fadl al-Harrani (may Allah have mercy on him) from Baqiyyah (may Allah have mercy on him).