حَدَّثَنَا إِسْحَاقُ بْنُ أَبِي إِسْرَائِيلَ، وَعَمْرٌو النَّاقِدُ، قَالَا: حَدَّثَنَا سُفْيَانُ، عَنِ الزُّهْرِيِّ، سَمِعَهُ مِنْ سَهْلِ بْنِ سَعْدٍ، قَالَ: اطَّلَعَ رَجُلٌ مِنْ جُحْرٍ فِي حُجْرَةِ النَّبِيِّ صلى الله عليه وسلم وَالنَّبِيُّ صلى الله عليه وسلم مَعَهُ مِدْرًى يَحُكُّ بِهِ رَأْسَهُ، فَقَالَ: «لَوْ أَعْلَمُ أَنَّكَ تَنْظُرُ لَطَعَنْتُ بِهِ فِي عَيْنِكَ، إِنَّمَا جُعِلَ الِاسْتِئْذَانُ مِنْ أَجْلِ الْبَصَرِ»
It is narrated from Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) that a man peeped in through a hole into the blessed chamber of the Prophet (peace and blessings be upon him), while the Prophet (peace and blessings be upon him) had a comb (an instrument for scratching the head) with which he (peace and blessings be upon him) was scratching his blessed head. He (peace and blessings be upon him) (seeing him) said: "Had I known that you were peeping (inside), I would have poked your eye with it. In fact, the command to seek permission (before entering) has been made obligatory only for the sake of the gaze (protecting privacy from undue intrusion)."