Sunan an-Nasa'i, Book 27, Hadith 97 (In-Book)

It was narrated that 'Abdullah bin Az-Zubair said: "Zam'ah had a slave woman with whom he used to have intercourse, but he suspected that someone else was also having intercourse with her. She gave birth to a child who resembled the one whom he suspected. Zam'ah died when she was pregnant, and Sawdah mentioned that to the Messenger of Allah. The Messenger of Allah said: 'The child is the bed's, but veil yourself from him, O Sawdah, for he is not a brother of yours.'"

أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، قَالَ أَنْبَأَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ مُجَاهِدٍ، عَنْ يُوسُفَ بْنِ الزُّبَيْرِ، - مَوْلًى لَهُمْ - عَنْ عَبْدِ اللَّهِ بْنِ الزُّبَيْرِ، قَالَ كَانَتْ لِزَمْعَةَ جَارِيَةٌ يَطَؤُهَا هُوَ وَكَانَ يَظُنُّ بِآخَرَ يَقَعُ عَلَيْهَا فَجَاءَتْ بِوَلَدٍ شِبْهِ الَّذِي كَانَ يَظُنُّ بِهِ فَمَاتَ زَمْعَةُ وَهِيَ حُبْلَى فَذَكَرَتْ ذَلِكَ سَوْدَةُ لِرَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ الْوَلَدُ لِلْفِرَاشِ وَاحْتَجِبِي مِنْهُ يَا سَوْدَةُ فَلَيْسَ لَكِ بِأَخٍ ‏" ‏

sunnah.com