24:28
فَإِن لَّمْ تَجِدُوا۟ فِيهَآ أَحَدًۭا فَلَا تَدْخُلُوهَا حَتَّىٰ يُؤْذَنَ لَكُمْ ۖ وَإِن قِيلَ لَكُمُ ٱرْجِعُوا۟ فَٱرْجِعُوا۟ ۖ هُوَ أَزْكَىٰ لَكُمْ ۚ وَٱللَّهُ بِمَا تَعْمَلُونَ عَلِيمٌۭ
And if you do not find anyone therein, do not enter them until permission has been given you. And if it is said to you, "Go back," then go back; it is purer for you. And Allah is Knowing of what you do.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
Seeking Permission and the Etiquette of entering Houses
This is the Islamic etiquette. Allah taught these manners (of seeking permission) to His believing servants and commanded them not to enter houses other than their own until they had asked permission, i.e., to ask for permission before entering and to give the greeting of Salam after asking. One should seek permission three times, and if permission is given, (he may enter), otherwise he should go away.It was reported in the Sahih that when Abu Musa asked `Umar three times for permission to enter and he did not give him permission, he went away. Then `Umar said, "Did I not hear the voice of `Abdullah bin Qays asking for permission to enter Let him come in." So they looked for him, but found that he had gone. When he came later on, `Umar said, "Why did you go away" He said, "I asked for permission to enter three times, but permission was not given to me, and I heard the Prophet say,
«إِذَا اسْتَأْذَنَ أَحَدُكُمْ ثَلَاثًا فَلَمْ يُؤْذَنْ لَهُ فَلْيَنْصَرِفْ»
(If any one of you asks for permission three times and it is not given, then let him go away.)" `Umar said, "You should certainly bring me evidence for this or I shall beat you!" So he went to a group of the Ansar and told them what `Umar said. They said, "No one will give testimony for you but the youngest of us." So Abu Sa`id Al-Khudri went with him and told `Umar about that. `Umar said, "What kept me from learning that was my being busy in the marketplace." Imam Ahmad recorded a narration stating that Anas or someone else said that the Messenger of Allah ﷺ asked for permission to enter upon Sa`d bin `Ubadah. He said:
«السَّلَامُ عَلَيْكَ وَرَحْمَةُ اللهِ»
(As-Salamu `Alayka wa Rahmatullah) Sa`d said, "Wa `Alaykas-Salam Wa Rahmatullah," but the Prophet did not hear the returned greeting until he had given the greeting three times and Sa`d had returned the greeting three times, but he did not let him hear him i.e., Sa`d responded in a low voice. So the Prophet went back, and Sa`d followed him and said,"O Messenger of Allah, may my father and mother be ransomed for you! You did not give any greeting but I responded to you, but I did not let you hear me. I wanted to get more of your Salams and blessings." Then he admitted him to his house and offered him some raisins. The Prophet ate, and when he finished, he said,