Sayyiduna Anas bin Malik (may Allah be pleased with him) said: "The Prophet (peace and blessings be upon him) put out the eyes of the Uraniyyin only because they had put out the eyes of the herdsmen."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13191