Sayyiduna Anas bin Malik (may Allah be pleased with him) said that when Ibrahim, the son of the Prophet (peace and blessings be upon him), was born from his slave woman Mariyah (may Allah be pleased with her), a doubt about him passed through his heart, until Jibril (peace be upon him) came and said: 'As-salamu alayka ya Aba Ibrahim' (Peace be upon you, O father of Ibrahim).
If this is established, it contains evidence that lineage is established through the bed of a slave woman.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب اللعان / 15373