It is narrated from Zaid bin Wahb that Sayyiduna Ali (may Allah be pleased with him) said regarding a child born of adultery to the guardians of his mother: "Take him, you will be his heirs, and you will be responsible for his blood money, and he will not be your heir."