Sahih Muslim
The Book Pertaining to the Oath, for Establishing the Responsibility of Murders, Fighting, Requital and Blood-Wit (Kitab Al-Kitab Al-Qasama wal-Muharaba wal-Qisas wal-Diyat)
Book Number: 016 / Hadith Number: 4137
Anas reported that Allah's Messenger (may peace be upon him) pierced their eyes because they had pierced the eyes of the shepherds.