كتاب الصيد والذبائح وما يؤكل من الحيوان
34  
The Book of Hunting, Slaughter, and what may be Eaten
(12)
Chapter: The prohibition of cornering animals in order to kill them (for sport)
(12)
باب النَّهْىِ عَنْ صَبْرِ الْبَهَائِمِ، ‏‏
Sahih Muslim 1958 b

Sa'id b. Jubair reported that Ibn 'Umar happened to pass by some young men of the Quraish who had tied a bird (and th, is made it a target) at which they had been shooting arrows Every arrow that they missed came into the possession of the owner of the bird. So no sooner did they see Ibn 'Umar they went away. Thereupon Ibn 'Umar said:

Who has done this? Allah has cursed him who does this. Verily Allah's Messenger (ﷺ) invoked curse upon one who made a live thing the target (of one's marksmanship).
وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا هُشَيْمٌ، أَخْبَرَنَا أَبُو بِشْرٍ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، قَالَ مَرَّ ابْنُ عُمَرَ بِفِتْيَانٍ مِنْ قُرَيْشٍ قَدْ نَصَبُوا طَيْرًا وَهُمْ يَرْمُونَهُ وَقَدْ جَعَلُوا لِصَاحِبِ الطَّيْرِ كُلَّ خَاطِئَةٍ مِنْ نَبْلِهِمْ فَلَمَّا رَأَوُا ابْنَ عُمَرَ تَفَرَّقُوا فَقَالَ ابْنُ عُمَرَ مَنْ فَعَلَ هَذَا لَعَنَ اللَّهُ مَنْ فَعَلَ هَذَا إِنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم لَعَنَ مَنِ اتَّخَذَ شَيْئًا فِيهِ الرُّوحُ غَرَضًا ‏.‏
Reference : Sahih Muslim 1958b
In-book reference : Book 34, Hadith 91
USC-MSA web (English) reference : Book 21, Hadith 4816
  (deprecated numbering scheme)