It was narrated form Anas bin Malik that:
a Bedouin came to the door of the prophet and put his eye to the crack. The Prophet saw him and intended to put his eye out with a sword or a stick. When he saw him , he stopped, and the Prophet said to hi: If you had persisted, I would have put your eye out.