Sunan an-Nasa'i, Volume 5, Book 43, Hadith 4444 (DarusSalam)

It was narrated that Hisham bin Zaid said; "Ans and I entered upon Al-Hakam - that it, Ibn Ayyb - and there were some people shooting at a chicken in the house of the governor. He said: 'The Messenger of Allah forbade using animals as targets;'

أَخْبَرَنَا إِسْمَاعِيلُ بْنُ مَسْعُودٍ، قَالَ حَدَّثَنَا خَالِدٌ، عَنْ شُعْبَةَ، عَنْ هِشَامِ بْنِ زَيْدٍ، قَالَ دَخَلْتُ مَعَ أَنَسٍ عَلَى الْحَكَمِ - يَعْنِي ابْنَ أَيُّوبَ - فَإِذَا أُنَاسٌ يَرْمُونَ دَجَاجَةً فِي دَارِ الأَمِيرِ فَقَالَ نَهَى رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ تُصْبَرَ الْبَهَائِمُ ‏.‏

sunnah.com