Sahih Muslim , Book 16, Hadith 4137 (USC-MSA) ⓘ
Anas reported that Allah's Messenger pierced their eyes because they had pierced the eyes of the shepherds.
وَحَدَّثَنِي الْفَضْلُ بْنُ سَهْلٍ الأَعْرَجُ، حَدَّثَنَا يَحْيَى بْنُ غَيْلاَنَ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ، عَنْ سُلَيْمَانَ التَّيْمِيِّ، عَنْ أَنَسٍ، قَالَ إِنَّمَا سَمَلَ النَّبِيُّ صلى الله عليه وسلم أَعْيُنَ أُولَئِكَ لأَنَّهُمْ سَمَلُوا أَعْيُنَ الرِّعَاءِ .
also referenced under: Book 28, Hadith 19 (In-Book) & Hadith 1671 (Reference)