Peace be upon you. This is due to His saying, exalted is He, “until you have sought permission,” that is, until you have asked permission, “and greeted the occupants.” The majority hold that the greeting should come first, so that one says, “Peace be upon you. May I enter?” The verse employs reversal in word order; its intended sense is: “until you have greeted the occupants and sought permission.” This is likewise how it appears in the copy of the Quran belonging to Abd Allah ibn Masud.
It is narrated from Kaladah ibn Hanbal, who said: I entered upon the Prophet, peace and blessings be upon him, without offering the greeting or seeking permission. The Prophet, peace and blessings be upon him, said: “Go back and say: ‘Peace be upon you. May I enter?’” (1)
It is narrated from Ibn Umar that a man sought permission to enter upon him, saying, “May I enter?” Ibn Umar replied, “No.” Someone then instructed the man to offer the greeting, so he did so, and Ibn Umar gave him permission to enter. (2)
Some said: If his eyes fall upon a person, he should offer the greeting first; otherwise, he should seek permission first and then offer the greeting. Abu Musa al-Ashari and Hudhayfah said: One must seek permission before entering upon one’s unmarriageable female relatives. Al-Hasan said the same. Even if they live in the same house, one should clear one’s throat or make the slightest movement.
Ahmad ibn Abd Allah al-Salihi informed us; Abu al-Hasan Ali ibn Muhammad ibn Abd Allah ibn Bishran informed us; Ismail ibn Muhammad al-Saffar informed us; Ahmad ibn Mansur al-Ramadi informed us; Abd al-Razzaq informed us; Mamar informed us, from Said al-Jariri, from Abu Nadrah, from Abu Said al-Khudri, who said: Abd Allah ibn Qays greeted Umar ibn al-Khattab three times, but Umar did not grant him permission, so he left. Umar sent someone after him and asked, “Why did you leave?” He replied, “I heard the Messenger of Allah, peace and blessings be upon him, say: ‘If one of you offers the greeting three times and receives no response, let him leave.’” Umar said, “You must bring proof for what you say, or else I shall do such-and-such to you,” having thus threatened him.
He said: Abu Musa al-Ashari then came, pale in complexion, while I was sitting in a gathering. We asked, “What is the matter with you?” He said, “I greeted Umar,” and he told us what had happened. Then he asked, “Has any of you heard this from the Messenger of Allah, peace and blessings be upon him?” They replied, “Yes, all of us have heard it.” So they sent one man from among them with him, and he went to Umar and informed him of this. (3)
Busr ibn Said also narrated it from Abu Said al-Khudri. In his version, Abu Musa al-Ashari said: The Messenger of Allah, peace and blessings be upon him, said: “If one of you seeks permission three times and is not granted permission, let him leave.” (4) Al-Hasan said: The first is notification, the second is consultation, and the third is seeking permission to depart.