Ibrahim (may Allah have mercy on him) said: "The claim of one who asserts paternity of a child from adultery will not be accepted, nor will the child be attributed to him, nor will he inherit."