Hadithcore
Mishkat al-Masabih, 4074

Ibn ‘Umar told that he heard God’s messenger prohibit keeping an animal or anything else* waiting to be killed. *The word translated <i>animal</i> is <i>bahima</i>, 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.)

وَعَنِ ابْنِ عُمَرَ قَالَ: سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَنْهَى أَنْ تُصْبَرَ بهيمةٌ أَو غيرُها للْقَتْل

References1 variant
In-Book Reference
Book 20, Hadith 11