Ash'ath narrates that Muhammad, may Allah have mercy on him, said that a child born from adultery cannot be attributed in lineage to the adulterer.