USC-MSA web (English) : Book 36, Hadith 23
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي مَالِكٌ، أَنَّهُ بَلَغَهُ أَنَّ عُمَرَ بْنَ الْخَطَّابِ، أَوْ عُثْمَانَ بْنَ عَفَّانَ قَضَى أَحَدُهُمَا فِي امْرَأَةٍ غَرَّتْ رَجُلاً بِنَفْسِهَا وَذَكَرَتْ أَنَّهَا حُرَّةٌ فَتَزَوَّجَهَا فَوَلَدَتْ لَهُ أَوْلاَدًا فَقَضَى أَنْ يَفْدِيَ وَلَدَهُ بِمِثْلِهِمْ . قَالَ يَحْيَى سَمِعْتُ مَالِكًا يَقُولُ وَالْقِيمَةُ أَعْدَلُ فِي هَذَا إِنْ شَاءَ اللَّهُ .
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."
Full reference and source
USC-MSA web (English) : Book 36, Hadith 23 Arabic : Book 36, Hadith 1427
View source on Sunnah.com (opens in a new tab)