Language:
كتاب الفرائض
85  
Laws of Inheritance (Al-Faraa'id)
(18)
Chapter: The child is for the owner of the bed
(18)
باب الْوَلَدُ لِلْفِرَاشِ حُرَّةً كَانَتْ أَوْ أَمَةً
Sahih al-Bukhari 6749

Narrated `Aisha:

`Utba (bin Abi Waqqas) said to his brother Sa`d, "The son of the slave girl of Zam`a is my son, so be his custodian." So when it was the year of the Conquest of Mecca, Sa`d took that child and said, "He is my nephew, and my brother told me to be his custodian." On that, 'Abu bin Zam`a got up and said, 'but the child is my brother, and the son of my father's slave girl as he was born on his bed." So they both went to the Prophet. Sa`d said, "O Allah's Messenger (ﷺ)! (This is) the son of my brother and he told me to be his custodian." Then 'Abu bin Zam`a said, "(But he is) my brother and the son of the slave girl of my father, born on his bed." The Prophet (ﷺ) said, "This child is for you. O 'Abu bin Zam`a, as the child is for the owner of the bed, and the adulterer receives the stones." He then ordered (his wife) Sauda bint Zam`a to cover herself before that boy as he noticed the boy's resemblance to `Utba. Since then the boy had never seen Sauda till he died.

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