Sahih Bukhari Volume 007, Book 067, Hadith Number 423.
Narrated By Said bin Jubair : While I was with Ibn 'Umar, we passed by a group of young men who had tied a hen and started shooting at it. When they saw Ibn 'Umar, they dispersed, leaving it. On that Ibn 'Umar said, "Who has done this? The Prophet cursed the one who did so."