Hadithcore
Riyad as-Salihin, 875

Abu Dharr (May Allah be pleased with him) reported:

I stepped out one night and saw the Messenger of Allah (ﷺ) walking by himself. I began to walk in the moonlit night. He turned round and saw me and asked, "Who is there?" I replied: "Abu Dharr." <b>[Al-Bukhari and Muslim]</b>.

وعن أبي ذر رضي الله عنه قال‏:‏ خرجت ليلة من الليالي، فإذا رسول الله صلى الله عليه وسلم يمشي وحده، فجعلت أمشي في ظل القمر، فالتفت فرآني فقال‏:‏ ‏

‏من هذا‏؟‏‏

‏ فقلت‏:‏ أبو ذر، ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 5, Hadith 32
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It is recommended that a person seeking permission to enter introduces himself so as to end any sense of alienation and replace it with familiarity.<br> 2) He should introduce himself by his name or nickname and anyone else accompanying him.