Maliks Muwatta Book 36, Hadith Number 23A.

Section : Judgement on Attaching Paternity to Children.

Malik related to me that he had heard that Umar ibn al-Khattab or Uthman ibn Affan gave a judgement about a slave woman who misled a man about herself and said that she was free. He married her and she bore children. It was decided that he should ransom his children with their like of slaves.

Yahya said that he heard Malik say, “To ransom them with their price is more equitable in this case, Allah willing.”