Saad said, "Messenger of Allah, this is the son of my brother Utba bin Abu Waqqas. He entrusted to me that the boy is his son. Look at the resemblance."Abd bin Zama said, "He is my brother, born on my father's bed from his slave-girl."The Messenger of Allah ﷺ looked at the boy's resemblance and saw a clear likeness to Utba. He said, "He is yours, Abd. The child belongs to the bed, and the adulterer gets the stone. And you, Sawda bint Zama, veil yourself from him."So she never saw him at all.
أخبرنا قتيبة قال حدثنا الليث عن ابن شهاب عن عروة عن عائشة قالت اختصم
سعد هذا يا رسول الله ابن أخي عتبة بن أبي وقاص عهد إلي أنه ابنه انظر إلى شبهه وقال عبد بن زمعة أخي ولد على فراش أبي من وليدته فنظر رسول الله ﷺ إلى شبهه فرأى شبها بينا بعتبة فقال هو لك يا عبد الولد للفراش وللعاهر الحجر واحتجبي منه يا سودة بنت زمعة فلم ير سودة قط
Bukhari narrated it in "The Book of Sales," chapter "Buying, Gifting, and Freeing a Slave Purchased from an Enemy Combatant," no. 2218, and Muslim in "The Book of Suckling," chapter "The Child Belongs to the Marital Bed and Avoiding Doubtful Matters," no. 1457, from Qutayba, with this wording. It also appears in "Al-Kubra," no. 5678.Layth is Ibn Saad.