It is narrated from Anbasa ibn Mus'ab that he said: "I said to Abu Abdullah عليه السلام: 'A bondwoman of mine committed adultery. Can I sell her child?' Imam عليه السلام said: 'Yes.' I said: 'Can I perform Hajj with its price?' Imam عليه السلام said: 'Yes.' "