On Asking Permission to Enter
Riyad as-Salihin (Gardens of the Righteous)
Riyad as-Salihin 874
Abu Musa Ash‘ari relates that the Holy Prophet said: Leave is to be asked three times. Then if leave is granted you may enter; otherwise go back (Bokhari and Muslim).
Riyad as-Salihin 875
Sahl ibn Sa‘ad relates that the Holy Prophet said: Asking for leave has been prescribed in order to restrain the eyes (Bokhari and Muslim).
Riyad as-Salihin 876
Ribi’ ibn Hirash relates: A man of the Bani A‘amir told us that he asked the Holy Prophet for leave to enter when he was at home, saying: May I enter? The Holy Prophet said to his servant: Go out and instruct this one in the manner of asking leave. Tell him to say: Peace be on you. May I come in? The man heard this and said: Peace be on you. May I come in? The Holy Prophet then gave him leave and he went in (Abu Daud).
Riyad as-Salihin 877
Kildah ibn Hanbal relates that he visited the Holy Prophet and entered without a greeting. The Holy Prophet said to him: Go back and say: Peace be on you. May I come in (Abu Daud and Tirmidhi)?
((رواه أبو داود، والترمذي وقال: حديث حسن)).