Malik said that if a man rnarried a female slave and then she had a child by him, and then he bought her, she was not an umm walad for him because of the child born to him while she belonged to another, until she had had a child by him while she was in his possession after he had purchased her.
Malik said, "If he buys her and she is pregnant by him and she then gives birth while she belongs to him, she is his umm walad by that pregnancy, according to what we think, and Allah knows best."
Arabic : Book 28, Hadith 1126