Hammurabi — "Until the child married, the father had legal rights to use children for labor f…"
Until the child married, the father had legal rights to use children for labor for himself or his debtors. Fathers could even choose to sell their children off.