Abdullah bin Abi Yazid narrated from his father who said that Umar bin Khattab (may Allah be pleased with him) sent a man to an old man from Banu Zuhrah who lived among our houses. I also went with him to Umar (may Allah be pleased with him), and he asked him about the birth of children in the pre-Islamic period. He said: "The bed would belong to one person and the semen to another (that is, the owner of the bed and the owner of the semen would be different)." Upon this, Umar bin Khattab (may Allah be pleased with him) said: "You have spoken the truth, but the Messenger of Allah (ﷺ) has decided in favor of the owner of the bed."
Hadith Referenceمسند الإمام الشافعي / كتاب عشرة النساء والإيلاء والخلع / 1203