Ayesha reported,

Utba bin Abu Waqqas had instructed his brother Saad bin Abu Waqqas, saying, "The son of Zama's slave-girl is mine, so take him into your custody."In the year of the Conquest, Saad took the boy and said, "He is my brother's son. My brother left instructions with me concerning him."Abd bin Zama then stood up and said, "He is my brother and the son of my father's slave-girl, born on my father's bed."The two of them went together to the Messenger of Allah ﷺ.Saad said, "Messenger of Allah, he is my brother's son. My brother left instructions with me concerning him."Abd bin Zama said, "He is my brother and the son of my father's slave-girl."The Messenger of Allah ﷺ said, "He is yours, Abd bin Zama. The child belongs to the bed, and the adulterer gets the stone."Then he said to Sawda bint Zama, "Veil yourself from him," because of the resemblance to Utba that he had noticed in the boy. So the boy never saw her until he met Allah.

Bukhari 2745

Sahih

حدثنا عبد الله بن مسلمة عن مالك عن ابن شهاب عن عروة بن الزبير

عن عائشة رضي الله عنها زوج النبي ﷺ أنها قالت

كان عتبة بن أبي وقاص عهد إلى أخيه سعد بن أبي وقاص أن ابن وليدة زمعة مني فاقبضه إليك فلما كان عام الفتح أخذه سعد فقال ابن أخي قد كان عهد إلي فيه فقام عبد بن زمعة فقال أخي وابن أمة أبي ولد على فراشه فتساوقا إلى رسول الله ﷺ فقال سعد يا رسول الله ابن أخي كان عهد إلي فيه فقال عبد بن زمعة أخي وابن وليدة أبي فقال رسول الله ﷺ هو لك يا عبد بن زمعة الولد للفراش وللعاهر الحجر ثم قال لسودة بنت زمعة احتجبي منه لما رأى من شبهه بعتبة فما رآها حتى لقي الله

البخاري 2745صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Bequests
Chapter
Testator telling his executor to look after his children, and the claims permissible for the executor to make
Numbering
Darussalam 2745
Bukhari 2745