Hujayyah bin Adi (may Allah have mercy on him) narrates that a man came to Sayyiduna Ali (may Allah be pleased with him) and said: "I have bought a cow." He said: "Slaughter it on behalf of seven (people)." He said: "Its horn is broken." He said: "That will not harm you." He said: "It is lame." He said: "If it reaches the place of sacrifice (walking by itself), then slaughter it." (He further said:) "The Messenger of Allah (peace and blessings be upon him) ordered us to examine the eye and the ear (of the sacrificial animal) carefully."
Ibn Mahdi (may Allah have mercy on him) also narrated it from Sufyan (may Allah have mercy on him).