Musnad Ahmad 734
It was narrated that Hujayyah said:
A man asked “Ali (رضي الله عنه) about (sacrificing) a cow. He said: (it may be sacrificed) on behalf of seven people. He said: (What about a cow with) a broken horn? He said. It doesn`t matter. He said: (What if it is) lame? He said: If it can reach the place of sacrifice, then slaughter it. The Messenger of Allah (ﷺ)  commanded us to examine the eyes and ears.
حَدَّثَنَا وَكِيعٌ، حَدَّثَنَا سُفْيَانُ، عَنْ سَلَمَةَ بْنِ كُهَيْلٍ، عَنْ حُجَيَّةَ، قَالَ سَأَلَ رَجُلٌ عَلِيًّا رَضِيَ اللَّهُ عَنْهُ عَنْ الْبَقَرَةِ فَقَالَ عَنْ سَبْعَةٍ فَقَالَ مَكْسُورَةُ الْقَرْنِ فَقَالَ لَا يَضُرُّكَ قَالَ الْعَرْجَاءُ قَالَ إِذَا بَلَغَتْ الْمَنْسَكَ فَاذْبَحْ أَمَرَنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ نَسْتَشْرِفَ الْعَيْنَ وَالْأُذُنَ‏.‏