Anas reported that Allah's Messenger (ﷺ) pierced their eyes because they had pierced the eyes of the shepherds.
وَحَدَّثَنِي الْفَضْلُ بْنُ سَهْلٍ الأَعْرَجُ، حَدَّثَنَا يَحْيَى بْنُ غَيْلاَنَ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ، عَنْ سُلَيْمَانَ التَّيْمِيِّ، عَنْ أَنَسٍ، قَالَ إِنَّمَا سَمَلَ النَّبِيُّ صلى الله عليه وسلم أَعْيُنَ أُولَئِكَ لأَنَّهُمْ سَمَلُوا أَعْيُنَ الرِّعَاءِ .
Muslim
The Book of Oaths,Muharibin,Qasas(Retaliation), andDiyat(Blood Money) • Hadith 19