Sayyiduna Tawus (may Allah have mercy on him) said: "The man who fathers a child after marriage, that child will be his heir; the child born from previous adultery will not be an heir."