(37) The Book of Clothes and Adornment
كتاب اللباس والزينة
(29) Chapter: The Prohibition Of Striking Or Branding Animals On The Face
(29) باب النَّهْىِ عَنْ ضَرْبِ الْحَيَوَانِ، فِي وَجْهِهِ وَوَسْمِهِ فِيهِ ‏.‏
Sahih Muslim 2117 

Jabir reported that there happened to pass before Allah's Apostle (ﷺ) an ass the face of which had been cauterised, whereupon he said:

Allah has cursed one who has cauterised it (on the face).
وَحَدَّثَنِي سَلَمَةُ بْنُ شَبِيبٍ، حَدَّثَنَا الْحَسَنُ بْنُ أَعْيَنَ، حَدَّثَنَا مَعْقِلٌ، عَنْ أَبِي الزُّبَيْرِ، عَنْ جَابِرٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم مَرَّ عَلَيْهِ حِمَارٌ قَدْ وُسِمَ فِي وَجْهِهِ فَقَالَ ‏ "‏ لَعَنَ اللَّهُ الَّذِي وَسَمَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 2117
In-book reference : Book 37, Hadith 163
USC-MSA web (English) reference : Book 24, Hadith 5283
  (deprecated numbering scheme)