DARIMI 2339:
from Abū Maymūnah Sulaymān a freed slave of Liʾahl al-Madīnah —
[Machine] Narrated by Abu Maymuna Sulaiman, the servant of the people of Madinah, who said: I was with Abu Huraira when a woman came to him and said, "Indeed, my husband wants to take away my child." Abu Huraira said, "I was with the Messenger of Allah ﷺ when a woman came to him and said, 'Indeed, my husband wants to take away my child or my son, and he has benefited me and provided me with water from the well of Abu 'Inaba.' The Messenger of Allah ﷺ said, 'Bring your husband here.' So her husband came and said, 'Who will contend with me regarding my child or my son?' The Messenger of Allah ﷺ said, 'O young boy, this is your father and this is your mother, so take the hand of whoever you wish.' Abu Asim said, 'Follow whichever of them you wish.' So he took the hand of his mother and they left together."
الدارمي ٢٣٣٩:
عن ابو ميمونه سليمان ا مولى oف لءهل المدينه —
عَنْ أَبِي مَيْمُونَةَ سُلَيْمَانَ مَوْلًى لِأَهْلِ الْمَدِينَةِ قَالَ كُنْتُ عِنْدَ أَبِي هُرَيْرَةَ فَجَاءَتْهُ امْرَأَةٌ فَقَالَتْ إِنَّ زَوْجِي يُرِيدُ أَنْ يَذْهَبَ بِوَلَدِي فَقَالَ أَبُو هُرَيْرَةَ كُنْتُ عِنْدَ رَسُولِ اللَّهِ ﷺ إِذْ جَاءَتْهُ امْرَأَةٌ فَقَالَتْ إِنَّ زَوْجِي يُرِيدُ أَنْ يَذْهَبَ بِوَلَدِي أَوْ بِابْنِي وَقَدْ نَفَعَنِي وَسَقَانِي مِنْ بِئْرِ أَبِي عِنَبَةَ فَقَالَ رَسُولُ اللَّهِ ﷺ اسْتَهِمَا أَوْ قَالَ تَسَاهَمَا أَبُو عَاصِمٍ الشَّاكُّ فَجَاءَ زَوْجُهَا فَقَالَ مَنْ يُخَاصِمُنِي فِي وَلَدِي أَوْ فِي ابْنِي؟ فَقَالَ رَسُولُ اللَّهِ ﷺ «يَا غُلَامُ هَذَا أَبُوكَ وَهَذِهِ أُمُّكَ فَخُذْ بِيَدِ أَيِّهِمَا شِئْتَ» وَقَدْ قَالَ أَبُو عَاصِمٍ فَاتْبَعْ أَيَّهُمَا شِئْتَ فَأَخَذَ بِيَدِ أُمِّهِ فَانْطَلَقَتْ بِهِ
hadithunlocked.com