Musnad Ahmad 1021, 1022
It was narrated from Hujayyah bin ‘Adiyy that A man asked `Ali (رضي الله عنه) about [sacrificing] a cow. He said:
[It may be sacrificed] on behalf of seven people. He said: [What about] its horns? He said: It does not matter. He said: [What about] one that is lame? He said: If it can reach the place of sacrifice [then sacrifice it]. He said: The Messenger of Allah (ﷺ)  commanded us to check the eyes and ears.


It was narrated that Salamah bin Kuhail said: l heard Hujayyah bin `Adiyy say: I heard `Ali bin Abi Talib (رضي الله عنه) when a man asked him... and he narrated the same hadeeth.
حَدَّثَنَا عَبْدُ الرَّحْمَنِ، عَنْ سُفْيَانَ، وَشُعْبَةَ، وَحَمَّادِ بْنِ سَلَمَةَ، عَنْ سَلَمَةَ بْنِ كُهَيْلٍ، عَنْ حُجَيَّةَ بْنِ عَدِيٍّ، أَنَّ رَجُلًا، سَأَلَ عَلِيًّا رَضِيَ اللَّهُ عَنْهُ عَنْ الْبَقَرَةِ فَقَالَ عَنْ سَبْعَةٍ قَالَ الْقَرَنُ قَالَ لَا يَضُرُّكَ قَالَ فَالْعَرْجَاءُ قَالَ إِذَا بَلَغَتْ الْمَنْسَكَ قَالَ وَأَمَرَنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أَنْ نَسْتَشْرِفَ الْعَيْنَ وَالْأُذُنَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ حَدَّثَنَا شُعْبَةُ عَنْ سَلَمَةَ بْنِ كُهَيْلٍ قَالَ سَمِعْتُ حُجَيَّةَ بْنَ عَدِيٍّ قَالَ سَمِعْتُ عَلِيَّ بْنَ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ وَسَأَلَهُ رَجُلٌ فَذَكَرَ الْحَدِيثَ‏.‏