Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "The child belongs to the owner of the bed (the one on whose bed it was born)."
Yahya bin Ma'in (may Allah have mercy on him) declared Ma'mar (may Allah have mercy on him) trustworthy (thiqah).
And Abu Yazid (may Allah have mercy on him) also narrated something similar, which will come in (the book) "al-Kuna".