وعن رِبْعِيِّ بن حِرَاشٍ، قَالَ: حَدَّثَنَا رَجُلٌ مِنْ بَنِي عَامِرٍ أنَّهُ اسْتَأذَنَ عَلَى النَّبيِّ - صلى الله عليه وسلم - وَهُوَ في بيتٍ، فَقَالَ: أألِج؟ فَقَالَ رسول الله - صلى الله عليه وسلم - لِخَادِمِهِ: «أُخْرُجْ إِلَى هَذَا فَعَلِّمهُ الاسْتِئذَانَ، فَقُلْ لَهُ: قُلِ: السَّلاَمُ عَلَيْكُمْ، أأدْخُل؟» فَسَمِعَهُ الرَّجُلُ، فَقَالَ: السَّلامُ عَلَيْكُمْ، أَأَدْخُل؟ فَأذِنَ لَهُ النَّبيُّ - صلى الله عليه وسلم - فدخلَ. رواه أَبُو داود بإسناد صحيح.
It is narrated from Rib'i bin Hirash (may Allah have mercy on him) that he said: A man from Banu Amir told us that he sought permission (to enter) from the Prophet (peace and blessings be upon him) while he was in a house, and said: Shall I barge in? So the Messenger of Allah (peace and blessings be upon him) said to his servant: "Go out to this man and teach him how to seek permission. Tell him: Say, 'Peace be upon you; may I come in?'" The man heard this and said: "Peace be upon you; may I come in?" So the Prophet (peace and blessings be upon him) gave him permission and he came in.
(Narrated by Abu Dawud with a sahih chain)
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
➊ Merely saying "Assalamu alaikum" is not sufficient for seeking permission; rather, along with it, one should also ask, "May I come in?"
➋ One who possesses knowledge should teach it to others.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 5177