Abu Hurairah reported,

A woman came to the Messenger of Allah ﷺ and said, "May my father and mother be your ransom, my husband wants to take my son away, though he has been a help to me and has brought me water from the well of Abu Inabah."Then her husband came and said, "Who will dispute with me over my son?"The Messenger of Allah ﷺ said, "Boy, this is your father and this is your mother. Take the hand of whichever of them you wish."So he took his mother's hand, and she went off with him.

Nasai 3526

Sahih

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

أبي هريرة فقال

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

النسائي 3526صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Divorce
Chapter
Islam of one of the spouses and giving the child the choice
Numbering
Darussalam 3526
Nasai 3526