Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:6:143

˹They are˺ eight mates - of the sheep, two and of the goats, two. Say, "Is it the two males He has forbidden or the two females or that which the wombs of the two females contain? Inform me with knowledge, if you should be truthful."  

Eight pairs, types (thamāniyata azwājin substitutes for hamūlatan wa-farshan, ‘some for burdens and some for light support’): two of sheep, a male and a female; and of goats (read ma‘az or ma‘z) two. Say, O Muhammad (s) to those who on one occasion deem male cattle forbidden, and on another, the females thereof, and then ascribe such ˹rules˺ to God: ‘Is it the two males, of the sheep and goats, He has forbidden, you, or the two females, of these two ˹types˺, or that which the wombs of the two females contain, be they male or female? Inform Me with knowledge, of the details of such prohibitions, if you speak truly’, in this ˹matter˺, meaning: on what basis has the prohibition been made? If it is on the basis of maleness, then all males are forbidden; if on the basis of femaleness, then all females are so ˹forbidden˺; if on what the womb may contain, then both genders are prohibited. So, on what basis are such specifications made? (the interrogative is meant as a repudiation).
القرآن:٦:١٤٣

ثَمَانِيَةَ أَزْوَاجٍ ۖ مِنَ الضَّأْنِ اثْنَيْنِ وَمِنَ الْمَعْزِ اثْنَيْنِ ۗ قُلْ آلذَّكَرَيْنِ حَرَّمَ أَمِ الْأُنْثَيَيْنِ أَمَّا اشْتَمَلَتْ عَلَيْهِ أَرْحَامُ الْأُنْثَيَيْنِ ۖ نَبِّئُونِي بِعِلْمٍ إِنْ كُنْتُمْ صَادِقِينَ  

{ثمانية أزواج} أصناف بدل من حمولة وفرشا {من الضأن} زوجين {اثنين} ذكر وأنثى {ومن المعَز} بالفتح والسكون {اثنين قل} يا محمد لمن حرم ذكور الأنعام تارة وإناثها أخرى ونسب ذلك إلى الله {آلذكرين} من الضأن والمعز {حرم} الله عليكم {أم الأنثيين} منهما {أما اشتملت عليه أرحام الأنثيين} ذكرا كان أو أنثى {نَبِّئوني بعلم} عن كيفية تحريم ذلك {إن كنتم صادقين} فيه المعنى من أين جاء التحريم؟ فإن كان من قبل الذكورة فجميع الذكور حرام أو الأنوثة فجميع الإناث، أو اشتمال الرحم فالزوجان، فمن أين التخصيص؟ والإستفهام للإنكار.