مشكوة المصابيح Mishkat al-Masabih كتاب الصيد والذبائح The Book of Hunting and Slaughtering
(لَا تَتَّخِذْ حَيَوَانًا مَرْمَى لِإِيذَائِهِ)

(Do not target an animal to harm it)

1 hadith
Hadith 4074
وَعَنِ ابْنِ عُمَرَ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَنْهَى أَنْ تُصْبَرَ بهيمةٌ أَو غيرُها للْقَتْل
Ibn ‘Umar told that he heard God’s messenger prohibit keeping an animal or anything else* waiting to be killed. *The word translated animal is bahima, which indicates a quadruped. “Anything else” means other creatures which are killed for food. The prohibition is said to refer either to keeping such animals without food and drink, or to imprisoning them and using them as targets. (Bukhari and Muslim.)
Hadith Reference Mishkat al-Masabih / The Book of Hunting and Slaughtering / Hadith: 4074
Hadith Grading الألبانی: مُتَّفَقٌ عَلَيْهِ  |  زبیر علی زئی: متفق عليه
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (5514) و مسلم (58/ 1956)»