Jami` at-Tirmidhi Book 42, Hadith 22

that a man peeked in on the Messenger of Allah (ﷺ), in one of the apartments of the Prophet (ﷺ), while the Prophet (ﷺ) had a Midrah (an iron comb) with which he was scratching his head. So the Prophet (ﷺ) said: "If I knew that you were looking then I would have poked your eyes with it. Seeking permission has only been enjoined because of the sight."

Previous Hadith

that the Prophet (ﷺ) was in his house when a man looked in at him, so he lunged towards him with an arrow head, so the man backed up.

Jami` at-Tirmidhi Book 42, Hadith 21


Next Hadith

that 'Amr bin 'Abdullah bin Safwan informed him, that Kaladah bin Hanbal had informed him, that Safwan bin Umayyah sent him to bring some milk, colostrum, and Daghabis (a type of herb) to the Prophet (ﷺ) while he was in the upper valley. (He said): "I entered upon him without seeking permission nor giving Salam. The Prophet (ﷺ) said: 'Go back and say: As-Salamu Alaykum, may I enter?'" And that was after Safwan had accepted Islam."

Jami` at-Tirmidhi Book 42, Hadith 23