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.
bayhaqi:21284Abū Muḥammad ʿAbdullāh b. Yūsuf al-Aṣbahānī Nbʾ Abū Saʿīd b. al-Aʿrābī > al-Ḥasan b. Muḥammad al-Zaʿfarānī > Shabābah > Shuʿbah > Salamah b. Kuhayl > al-Shaʿbī > Abū al-Khalīl or Ibn al-Khalīl > ʿAlī ؓ > Thalāthah

[Machine] They participated in the purification of a woman and claimed the child as their own. Ali commanded a man to strike between them, and he commanded the one who struck to give the others two-thirds of the blood money, and the child would belong to him. This is a suspended matter. The son of Al-Khalil mentioned this and Allah knows best. Al-Shafi'i mentioned this hadith in his old book and in the book of Ali and Abdullah, and he mentioned that if it is proven from the Prophet ﷺ, then we would accept it and it would be the evidence in it.  

البيهقي:٢١٢٨٤وَأَصَحُّ مَا رُوِيَ فِي هَذَا الْبَابِ مَا أَخْبَرَنَا أَبُو مُحَمَّدٍ عَبْدُ اللهِ بْنُ يُوسُفَ الْأَصْبَهَانِيُّ أنبأ أَبُو سَعِيدِ بْنُ الْأَعْرَابِيِّ ثنا الْحَسَنُ بْنُ مُحَمَّدٍ الزَّعْفَرَانِيُّ ثنا شَبَابَةُ ثنا شُعْبَةُ عَنْ سَلَمَةَ بْنِ كُهَيْلٍ عَنِ الشَّعْبِيِّ عَنْ أَبِي الْخَلِيلِ أَوِ ابْنِ الْخَلِيلِ عَنْ عَلِيٍّ ؓ أَنَّ ثَلَاثَةً

اشْتَرَكُوا فِي طُهْرِ امْرَأَةٍ فَادَّعَوَا الْوَلَدَ فَأَمَرَ عَلِيٌّ ؓ رَجُلًا أَنْ يُقْرِعَ بَيْنَهُمْ وَأَمَرَ الَّذِي قَرَعَ أَنْ يُعْطِيَ الْآخَرِينَ ثُلُثَيِ الدِّيَةِ وَيَكُونَ الْوَلَدُ لَهُ وَهَذَا مَوْقُوفٌ وَابْنُ الْخَلِيلِ يَنْفَرِدُ بِهِ وَاللهُ أَعْلَمُ وَقَدْ ذَكَرَ الشَّافِعِيُّ ؓ هَذَا الْحَدِيثَ فِي الْقَدِيمِ وَفِي كِتَابِ عَلِيٍّ وَعَبْدِ اللهِ ؓ وَذَكَرَ أَنَّهُ لَوْ ثَبَتَ عَنِ النَّبِيِّ ﷺ قُلْنَا بِهِ وَكَانَتِ الْحُجَّةُ فِيهِ