Opinion by
Hastings, C. J.At the June term of the district court of Des Moines county, 1847, a decree of divorce was rendered on the application of respondent, against the relator. The decree was rendered on petition and answer; and among other things, it was ordered and decreed, that the two oldest children remain in the custody of the father. It is conceded that the child, whose custody is sought by the relator,(by the writ of habeas corpus, is one of the oldest children, as specified in the decree.
*396This part of the decree is not a mere temporary order, as counsel supposed who argued this case. The entire decree, except as to alimony and the custody of the youngest child, was a final decree; and that part of the decree awarding the custody of the two oldest children to the father is absolute, and cannot be changed, altered, or reversed by any' court except an appellate court, or upon application by bill or petition to the court which rendered the same, impeaching it for fraud, or showing a mental, moral, or physical incapacity in the father to perform the duties of a guardian over his own offspring, happening since the decree.
In suing out his writ of habeas corpus, then, to obtain the custody of the child, the relator was pursuing the right guarantied to him by a-fixed and solemn decree of the court.
The record shows, that while the relator was before the court, on the 18th of October, 1847, prosecuting his writ of habeas corpus, a return having been made to the same, (the respondent and child being present in court,) was suddenly interrupted by a petition of the respondent, praying the court to alter and reverse that part of the decree awarding to the relator the custody of the child. That the court entertained the application, gave time to the relator to prepare a defense to the same, but immediately, or at least on the same day, granted the petitioner’s prayer for rescinding, &c., and gave the custody of the child to the respondent, subject to future orders; and this we think was error.
The relator had never been served with process, ruled to plead, answer, or demur to this petition; nor had the same been set down for hearing, according to the generally recognized rules of chancery practice. From the fact that counsel have argued this case upon the basis that the decree in relation to the custody of the children was merely- temporary, and subject to the future orders of the court, it is probable that the court below was led into the same error, as we will not presume that the court would alter a final decree, rendered at a previous term, in this summary manner, unless for mistake or fraud.
*397The court awarded the temporary custody of the child to the mother upon inspection. What other evidence moved the court to make such order does not appear of record. But we have no doubt the court was actuated by the purest motives; that the ill health of the child, and its many wants and necessities, which none but aT mother can administer to, imperatively demanded this temporary action' of the court. But there can be as little doubt that the father was legally entitled to the custody of the child. And such are now his rights, and will be, so long as the decree of the court remains.
What the emergency was which demanded a temporary relaxation of this decree, does not appear of record.
It seems the writ of habeas corpus has lost its force and power, and it will be necessary for the relator to procure another writ. We cannot, therefore, give the relator relief under the present proceedings. We think it was also error to tax the costs of attachment for contempt to the relator.
The respondents were in contempt of the process of the court, or of the judge of that court, and it would be contrary to all practice and precedent to discharge a party in contempt from payment of cost.
It is not necessary here to examine and consider the right set up by the parties to the custody of the child, nor the various questions raised in relation to sufficiency of deposition and character of the same, and the condition of the parties and capacities of each to maintain and educate their offspring. We cannot do this without going behind the decree. That part of the proceedings of the court below, as follows, “ And it is also further ordered and adjudged, and decreed, by the court here, that the decree giving the custody of the said Martha to the said Silas Deeds be rescinded and set aside, and that the custody of the said Martha Deeds be given to the said Lucy Ann Deeds, the mother of said child, exclusively, until the further order of this court,” is reversed. •