Hazrat Shurayh (may Allah have mercy on him) said: "If a child is born from a slave woman, the master has the right to deny it, and if it is from a free woman, then li'an will be conducted with the mother."
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 3246