Ibrahim and al-Sha'bi said: Wherever freeing a slave is obligatory, giving a child born of zina is not permissible.