It was narrated from Abu Hurairah that the Prophet said:
"If a person were to look at you without permission and you were to throw a stone at him and put out his eye, there would be no blame on you."