It is narrated from Hammad, from Al-Halabi, who said: "Abu Abdullah عليه السلام, was asked about a child born out of adultery-can he be bought, sold, or used for service? Imam عليه السلام said: 'Yes, except for a foundling girl (abandoned by parents), as she cannot be bought.' "