Language:
كتاب الأحكام
93  
Judgments (Ahkaam)
(29)
Chapter: Whoever is given the right of his brother through a judicial decision
(29)
بَابُ مَنْ قُضِيَ لَهُ بِحَقِّ أَخِيهِ فَلاَ يَأْخُذْهُ، فَإِنَّ قَضَاءَ الْحَاكِمِ لاَ يُحِلُّ حَرَامًا وَلاَ يُحَرِّمُ حَلاَلاً
Sahih al-Bukhari 7182

Narrated `Aisha:

(the wife of the Prophet) `Utba bin Abi Waqqas said to his brother Sa`d bin Abi Waqqas, "The son of the slave girl of Zam`a is from me, so take him into your custody." So in the year of Conquest of Mecca, Sa`d took him and said. (This is) my brother's son whom my brother has asked me to take into my custody." `Abd bin Zam`a got up before him and said, (He is) my brother and the son of the slave girl of my father, and was born on my father's bed." So they both submitted their case before Allah's Apostle. Sa`d said, "O Allah's Messenger (ﷺ)! This boy is the son of my brother and he entrusted him to me." `Abd bin Zam`a said, "This boy is my brother and the son of the slave girl of my father, and was born on the bed of my father." Allah's Messenger (ﷺ) said, "The boy is for you, O `Abd bin Zam`a!" Then Allah's Apostle further said, "The child is for the owner of the bed, and the stone is for the adulterer," He then said to Sauda bint Zam`a, "Veil (screen) yourself before him," when he saw the child's resemblance to `Utba. The boy did not see her again till he met Allah.

حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنْ عُرْوَةَ بْنِ الزُّبَيْرِ، عَنْ عَائِشَةَ، زَوْجِ النَّبِيِّ صلى الله عليه وسلم أَنَّهَا قَالَتْ كَانَ عُتْبَةُ بْنُ أَبِي وَقَّاصٍ عَهِدَ إِلَى أَخِيهِ سَعْدِ بْنِ أَبِي وَقَّاصٍ أَنَّ ابْنَ وَلِيدَةِ زَمْعَةَ مِنِّي فَاقْبِضْهُ إِلَيْكَ‏.‏ فَلَمَّا كَانَ عَامُ الْفَتْحِ أَخَذَهُ سَعْدٌ فَقَالَ ابْنُ أَخِي، قَدْ كَانَ عَهِدَ إِلَىَّ فِيهِ، فَقَامَ إِلَيْهِ عَبْدُ بْنُ زَمْعَةَ فَقَالَ أَخِي وَابْنُ وَلِيدَةِ أَبِي، وُلِدَ عَلَى فِرَاشِهِ‏.‏ فَتَسَاوَقَا إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ سَعْدٌ يَا رَسُولَ اللَّهِ ابْنُ أَخِي، كَانَ عَهِدَ إِلَىَّ فِيهِ‏.‏ وَقَالَ عَبْدُ بْنُ زَمْعَةَ أَخِي وَابْنُ وَلِيدَةِ أَبِي، وُلِدَ عَلَى فِرَاشِهِ‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ هُوَ لَكَ يَا عَبْدُ بْنَ زَمْعَةَ ‏"‏‏.‏ ثُمَّ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ الْوَلَدُ لِلْفِرَاشِ، وَلِلْعَاهِرِ الْحَجَرُ ‏"‏‏.‏ ثُمَّ قَالَ لِسَوْدَةَ بِنْتِ زَمْعَةَ ‏"‏ احْتَجِبِي مِنْهُ ‏"‏، لِمَا رَأَى مِنْ شَبَهِهِ بِعُتْبَةَ، فَمَا رَآهَا حَتَّى لَقِيَ اللَّهَ تَعَالَى‏.‏
Reference : Sahih al-Bukhari 7182
In-book reference : Book 93, Hadith 45
USC-MSA web (English) reference : Vol. 9, Book 89, Hadith 293
  (deprecated numbering scheme)