Anas reported that Allah's Messenger (ﷺ) pierced their eyes because they had pierced the eyes of the shepherds.
Sahih Muslim Book 28, Hadith 19