Zayd bin Arqam reported,

I was sitting with the Prophet ﷺ when a man from Yemen came and said that three men from Yemen had come to Ali disputing over a child, having all had relations with the same woman during a single period of purity.Ali said to two of them, "Concede the child to this one." But they refused.Then he said to another two, "Concede the child to this one." But they refused.Then he said to another two, "Concede the child to this one." But they refused.So Ali said, "You are quarrelsome partners. I will cast lots between you. Whoever wins the draw gets the child and owes his two companions two-thirds of the blood-money each."He then cast lots between them and assigned the child to the one whose lot was drawn. The Messenger of Allah ﷺ laughed until his molars, or his back teeth, became visible.

Abu Dawud 2269

Daif

حدثنا مسدد حدثنا يحيى عن الأجلح عن الشعبي عن عبد الله بن الخليل

عن زيد بن أرقم قال

كنت جالسا عند النبي ﷺ فجاء رجل من اليمن فقال إن ثلاثة نفر من أهل اليمن أتوا عليا يختصمون إليه في ولد وقد وقعوا على امرأة في طهر واحد فقال لاثنين منهما طيبا بالولد لهذا فغليا ثم قال لاثنين طيبا بالولد لهذا فغليا ثم قال لاثنين طيبا بالولد لهذا فغليا فقال أنتم شركاء متشاكسون إني مقرع بينكم فمن قرع فله الولد وعليه لصاحبيه ثلثا الدية فأقرع بينهم فجعله لمن قرع فضحك رسول الله ﷺ حتى بدت أضراسه أو نواجذه

أبو داود 2269ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Divorce
Chapter
Whoever said to use drawing lots if they dispute over a child
Numbering
Darussalam 2269
Abu Dawud 2269