So far as I know (he was cauterising) their ears.

Sahih Muslim Book 37 Hadith 166

Sahih Muslim #2119 b

The Book of Clothes and Adornment 37:166

Anas reported that when his mother gave birth to a child they brought that child to Allah's Messenger (ﷺ) so that he might chew some dates and touch his palate with them. and Allah's Apostle (ﷺ) was at that time in the fold busy in cauterising the animals Shu'ba said:

So far as I know (he was cauterising) their ears.

Chapter: The Permissibility Of Branding Animals Anywhere But On The Face, And This Is Recommended In The Case Of Animals Given As Zakat Ot Jizyah

Grade: Sahih