Narrated Hisham b. Zaid: 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.
We should also remember that Allah has created everything with a purpose and we should respect His creation by treating them kindly and with mercy whenever possible. We should also strive to protect our environment by avoiding activities which may harm any living creature unnecessarily, such as hunting for sport or keeping animals in captivity without providing proper care for them.