Jabir reported the Prophet (ﷺ) as saying when an ass which had been branded on its face passed him. Did it not reach you that I cursed him who branded the animals on their faces or struck them on their faces. So he prohibited it.
Sunan Abi Dawud Book 15, Hadith 88