Hilal bin Usama reported,

Abu Maymunah Salma, a freed slave from the people of Madinah and a truthful man, reported, "While I was sitting with Abu Hurairah, a Persian woman came to him with a son of hers. She and her husband had both claimed the boy, and her husband had divorced her.She said, 'Abu Hurairah,' speaking to him in Persian, 'my husband wants to take my son away.'Abu Hurairah replied, 'Cast lots over him,' speaking to her in Persian as well.Then her husband came and said, 'Who would dispute with me concerning my child?'Abu Hurairah said, 'O Allah, I only say this because I heard a woman come to the Messenger of Allah ﷺ while I was sitting with him, and she said, "Messenger of Allah, my husband wants to take my son away, and he has drawn water for me from the well of Abu Inabah and has been good to me."The Messenger of Allah ﷺ said, 'Cast lots over him.'Her husband said, 'Who would dispute with me concerning my child?'The Prophet ﷺ said, 'This is your father and this is your mother, so take the hand of whichever of them you wish.'The boy took his mother's hand, and she went off with him.'"

Abu Dawud 2277

Sahih

حدثنا الحسن بن علي الحلواني حدثنا عبد الرزاق وأبو عاصم عن ابن جريج أخبرني زياد

عن هلال بن أسامة

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

أبو داود 2277صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Divorce
Chapter
Who has more right to the child
Numbering
Darussalam 2277
Abu Dawud 2277