their condition, at a period of life when the law dedicates both their persons and their services to parental control.
But it is said that in this instance the father, in his lifetime, had contracted away his son, and that as it is to the father, rather than the mother, that the law awards the custody of the children, this contract will be enforced by the courts. Conceding that there was in this case a contract, based upon a legal consideration and binding upon the father, — upon which we express no opinion, —it must, we think, be held to have terminated at his death. If made at all, and if a valid contract at all, it was entered into without the knowledge or consent of the mother, and could not, therefore, divest her of that right to the custody of her son which arose upon the death of the father.
The father may appoint a testamentary guardian of the person or estate of his children, but he cannot, by contract with a stranger, bargain away the rights of the mother after his death. The courts might, under such circumstances, refuse to restore the child to her, for good and sufficient reasons, springing out of her own character and the welfare of the'1 child; but the objections to doing so must be based upon other considerations than her poverty, or the wishes of a boy of thirteen, seduced from filial duty by promises of presents or rewards.
We are of opinion that the mother, in this case, has shown herself entitled to the custody of her son.
Has a case of detention been made out against appellee? ‘ ‘ The writ of habeas corpus shall extend to all cases of illegal confinement or detention whatever, by which any person is deprived of his liberty, or in which the rightful custody of any person is withheld from the person entitled theretoCode 1871, sect. 1396.
We have seen that the mother is entitled to the custody of her Son in this case. Is that custody withheld from her by appellee? He says that the boy is at liberty to go if he pleases, but he admits that he has forbidden the mother to exercise her parental right of force and chastisement to compel