Sahih al-Bukhari, Book 87, Hadith 39 (Bukhari 6645)

Narrated Anas:

A man peeped into one of the dwelling places of the Prophet. The Prophet got up and aimed a sharp-edged arrow head (or wooden stick) at him to poke him stealthily.