Sayyiduna Sahl bin Sa'd (may Allah be pleased with him), the Companion of the Messenger of Allah (peace and blessings be upon him), narrates that a man peeped through a hole in the door of the Messenger of Allah (peace and blessings be upon him), while the Messenger of Allah (peace and blessings be upon him) had with him a comb with which he was scratching his head. When the Messenger of Allah (peace and blessings be upon him) saw him, he said: "Had I known that you were waiting for me, I would have thrust this into your eye. Seeking permission has only been prescribed because of the sight."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 5641