عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ جَاءَتْ امْرَأَةٌ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَدْ طَلَّقَهَا زَوْجُهَا فَأَرَادَتْ أَنْ تَأْخُذَ وَلَدَهَا فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ اسْتَهِمَا فِيهِ فَقَالَ الرَّجُلُ مَنْ يَحُولُ بَيْنِي وَبَيْنَ ابْنِي فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لِلْابْنِ وَفِي لَفْظٍ يَا غُلَامُ هَذَا أَبُوكَ وَهَذِهِ أُمُّكَ اخْتَرْ أَيَّهُمَا شِئْتَ فَاخْتَارَ أُمَّهُ فَذَهَبَتْ بِهِ
Syedna Abu Hurairah (may Allah be pleased with him) narrates that a woman came to the Noble Prophet (peace and blessings be upon him), her husband had divorced her and the woman wanted to take her child. The Noble Prophet (peace and blessings be upon him) said: Draw lots regarding this child. But the man said: Who can come between me and my child? The Messenger of Allah (peace and blessings be upon him) said: O child! This is your father and this is your mother, you may choose whichever of them you wish. He chose his mother, so she took him and left.
Brief Explanation
Benefits: … When the child reaches the age of discernment (tamyeez), then drawing lots (qur‘ah) for him or giving him the choice—after considering the consent of both parties and the judge—whichever decision is deemed appropriate among them, that should be adopted.