Narrated from Lady Aisha, the wife of the Prophet ﷺ: Utbah bin Abi Waqqas made a will to his brother, our master Sa’d bin Abi Waqqas (may Allah be pleased with him), that the son of Zam’ah’s slave woman is from my semen, so take him. When Makkah was conquered, our master Sa’d (may Allah be pleased with him) took hold of him and said, “This (is my brother’s son); my brother made a will about him.” ‘Abd bin Zam’ah said, “He is my brother; he was born on my father’s slave woman’s bed.” So the Messenger of Allah ﷺ said: “The child will belong to the one on whose bed he was born, while for the adulterer there is stoning.” Then the Messenger of Allah ﷺ said to the Mother of the Believers, Lady Sawdah bint Zam’ah (may Allah be pleased with her): “Observe veil from Ibn Zam’ah,” because Ibn Zam’ah resembled ‘Utbah in appearance. After that, Lady Sawdah (may Allah be pleased with her) did not see Ibn Zam’ah until her death.
Hadith Referenceالسنن المأثورة / باب ما جاء في فدية الأذى / 492
Hadith Takhrijصحیح بخاری، الفرائض، باب الولد للفراش حرة كانت أو امة، رقم: 6749، صحیح مسلم، الرضاع، باب الولد للفراش... الخ، رقم: 1457۔