It is narrated from Hazrat Maymunah bint Sa’d (may Allah be pleased with her), who was a freed slave of the Prophet, that a person asked the Prophet (peace be upon him) about the "illegitimate child." The Prophet (peace be upon him) said: "There is no good in him. In my view, the two sandals which I wear while striving in the path of Allah are better than freeing any child of adultery."