ENOfficial
He reported the Prophet (ﷺ) as saying when an ass which had been branded on its face passed him, “God curse the one who branded it!” Muslim transmitted it.
Source: sunnah.com
Other translations
Arabic
وَعَنْهُ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَرَّ عَلَيْهِ حِمَارٌ وَقَدْ وُسِمَ فِي وَجْهِهِ قَالَ: «لَعَنَ اللَّهُ الَّذِي وَسَمَهُ» . رَوَاهُ مُسْلِمٌ
sunnah.com