USC-MSA web (English) : Book 38, Hadith 11
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 Fadala ibn Ubayd al- Ansari who was one of the companions of the Messenger of Allah (ﷺ) was asked whether it was permissible for a man who had to free a slave to free an illegitimate child. He said, "Yes, That will give satisfaction for him."
Full reference and source
USC-MSA web (English) : Book 38, Hadith 11 Arabic : Book 38, Hadith 1476
View source on Sunnah.com (opens in a new tab)