Al-Adab Al-Mufrad, Book 43, Hadith 22 (In-Book)

Anas said, "A man looked through a gap into the room of the Prophet, may Allah bless him and grant him peace, and the Messenger of Allah aimed an arrow-head at him, and the man withdrew his head."

حَدَّثَنَا مُحَمَّدُ بْنُ سَلاَمٍ، قَالَ‏:‏ أَخْبَرَنَا الْفَزَارِيُّ، عَنْ حُمَيْدٍ، عَنْ أَنَسٍ قَالَ‏:‏ اطَّلَعَ رَجُلٌ مِنْ خَلَلٍ فِي حُجْرَةِ النَّبِيِّ صلى الله عليه وسلم، فَسَدَّدَ رَسُولُ اللهِ صلى الله عليه وسلم بِمِشْقَصٍ، فَأَخْرَجَ الرَّجُلُ رَأْسَهُ‏.‏

sunnah.com