وَحَدَّثَنِي وَحَدَّثَنِي مَالِك أَنَّهُ بَلَغَهُ، عَنْ فَضَالَةَ بْنِ عُبَيْدٍ الْأَنْصَارِيِّ وَكَانَ مِنْ أَصْحَابِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، أَنَّهُ سُئِلَ عَنْ " الرَّجُلِ تَكُونُ عَلَيْهِ رَقَبَةٌ، هَلْ يَجُوزُ لَهُ أَنْ يُعْتِقَ وَلَدَ زِنًا ؟ قَالَ : نَعَمْ، ذَلِكَ يُجْزِئُ عَنْهُ "
It is narrated from Sayyiduna Fadala bin Ubaid Ansari (may Allah be pleased with him) that he was asked: If a person is obliged to free a slave, can he free a child of adultery? He replied: Yes, he can.