I entered upon al-Hakam b. Ayyub along with Anas. He saw some youths or boys who had set up a hen and shooting at it. Anas said: The Messenger of Allah ﷺ forbade to kill an animal in confinement. (Using translation from Abū Dāʾūd 2816)
أَنَسٌ نَهَى رَسُولُ اللهِ ﷺ أَنْ تُصْبَرَ الْبَهَائِمُ