From Sahih Muslim (Hadith 5556):
Anas reported:We went to Allah's Messenger (ﷺ) as he was in the fold and he was cauterising the animals of the flock and I think (he was cauterising them) on their ears. This hadith has been narrated on the authority of Shu'ba through another chain of transmitters
Reference: Muslim 5556