delivered the opinion of the court.
This proceeding was instituted by David Dixon Russell for the purpose of obtaining the custody of his infant son who had been turned over to Mr. and Mrs. Burton by its mother. The son is now seven years old, but at the time of this proceeding was six years of age. The court granted *341the prayer of the habeas corpus petition and awarded the custody of the said infant to his father, and Mr. and Mrs* Burton obtained the present writ of error.
David Dixon Russell and Mildred Rachel Russell were married on August 30, 1940, in the city of Baltimore, Maryland. They lived together for some two years, moving from one place to another. He did not have steady employment, and according to her, he drank heavily and was unstable. This he denied.
On July 12, 1942, David Dixon Russell, Jr. was bom. Six weeks after his birth the mother was forced to leave her husband in Baltimore and return to Virginia where she lived with her stepfather in Fredericksburg. The father was inducted into the U. S. Army in October, 1942, and some five months later allotments of $80 per month were received by the wife. These allotments, which were not shown to have been voluntary, continued until his discharge from the army in November, 1945.
Mrs. Russell found it impossible to live on the allotments which she received and was forced to seek employment. She removed to Richmond in the early part of 1944, and was employed by the DuPont Company. She was unable to hold her job and look after the child at the same time, so she approached the personnel officer of the company in regard to the matter and was told that a Mrs. Rogers would be a satisfactory person with whom to leave the child. Arrangements were made with Mrs. Rogers to take care of the child, Mrs. Russell agreeing to pay her $9 a week for that service, and also agreeing to provide the necessary clothing.
The husband of Mrs. Rogers, who was also an employee of the DuPont Company, was transferred to Wilmington, Delaware, and Mrs. Rogers accompanied him. This made it necessary for Mrs. Russell to seek another person to take care of the child. Mrs. Burton, who was a sister of Mrs. Rogers, and her husband, agreed to continue the arrangement that Mrs. Russell had with Mrs. Rogers.
*342Sometime in the-autumn of 1945 Mrs. Russell instituted divorce proceedings against her husband in the Hustings Court of the City of Richmond, Part . II, and in December, 1945, while the proceedings were pending, Russell was discharged from the army and returned to Baltimore where he resided with his mother. About the middle.of December, 1945, he came to the home of Mr. and Mrs. Burton in Chester, Virginia, to see the child, and carried the child to Baltimore for Christmas, and in about a week returned it to Mr. and Mrs. Burton. He did not then object to the child being with the Burtons. He knew of the pendency of the divorce suit but made no appearance. On January 26, 1946, the court granted Mrs. Russell a divorce a vinculo from her husband on the grounds of desertion and abandonment. In the same decree the ■ custody of the child, which is the subject of the present litigation, was awarded Mrs. Russell. At that time the child was living with Mr. and Mrs. Burton, who continued to care for it as their own. They loved the child and the child had grown to love them. Russell knew that the $9 per week paid Mr. and Mrs. Burton was being paid by his former wife. Excepting the allotments made to his wife for approximately two and one-half years while he was in the army, he has not contributed any funds to the support of his child during its entire life.
In the early part- of 1943 the child became ill with pneumonia and its life was despaired of. Mrs. Russell, being without funds, was forced to seek the aid of the American Red Cross in order to secure adequate medical attention for her son. Her husband came to see the child while he was ill but made no arrangements to help take care of the expense that was made necessary by the. child’s illness.
Mrs. Russell has remarried and is now Mrs. Mildred Rachel Steris, residing with her husband in Lorraine, Ohio. She continued the $9 weekly payments to the Burtons until July, 1947, at which time they ceased.; At that time Mr. and Mrs. Burton indicated to her their desire to adopt the child, and said that unless, they, could have, him permanently *343they . did not care to continue looking after him. Mrs. Steris concurred in this thought and signed a paper con-4 senting to the adoption, but the adoption proceeding was never completed. The Burtons tried to communicate with the father and have him consent to the adoption. They addressed communications to him in Florida which were returned. They continued to keep the child as their own and are now sending him to school.
There can be no question about the fitness of the Burtons to rear this child. They have a nice home and have grown attached to him. They produced witnesses of high standing in the community of Chester who testified as to their character, reputation and general fitness to rear the child. It is true that Russell and his present wife testified as to his fitness to rear the child, but when his testimony is considered in the light of his failure to contribute any funds to the child’s support and maintenance during its entire life, other than the allotments which came through the government, his testimony is greatly weakened if not entirely destroyed.
As previously stated, the custody of the child was awarded its mother by the divorce decree of January 26', 1946. Russell filed a motion in the court below under Code, section 5111, to amend the decree to the extent that the custody of the child be awarded him. The former Mrs. Russell was made a party defendant. The Burtons were not parties to this proceeding. Mrs. Steris (formerly Mrs. Russell), according to her testimony, did not have the necessary finances to attend and testify in that proceeding. The Burtons, in compliance with the court’s order, brought the child to the court on October 9, 1948, and on that date the court transferred the custody of the child from Mrs. Steris to the father, David Dixon Russell. He thereupon made demand upon the Burtons to deliver possession of the child to him. He intended to take the child to Florida, beyond the jurisdiction of the court. The Burtons refused to comply with this demand and, on October 11, 1948, Russell filed this *344petition for a writ of habeas corpus, praying that the Burtons be commanded to bring the body of David Dixon Russell, Jr. to court. The .petition for the writ was founded entirely upon the order of October 9, 1948, entered in the divorce suit, changing the custody of the child from the mother to the father. The petition contained no allegation that the best interests of the child would be advanced by taking him from the custody of the Burtons and turning him over to Russell to be taken to Florida.
The Burtons appeared and filed a demurrer to the petition for habeas corpus. It was overruled and then they filed their answer. Thereupon, Russell introduced a certified copy of the decree of October 9, 1948, which was entered in the divorce suit, and to which the Burtons were not parties, 'and rested. The Burtons then move to strike the evidence and their motion was overruled. The evidence was heard ore terms, and the court entered the judgment of the habeas corpus proceeding, which is now the subject of this review.
There are three assignments of error, but we do not deem it necessary to discuss them separately. It must be remembered that Russell stánds in this court with a judgment in his favor, based upon testimony given before the trial court ore terms, the effect of which is to place him in a superior position so far as this litigation is concerned.
However, it must also be remembered that in matters of this kind courts exercise equity jurisdiction and possess a discretion, according to the facts, to do that which is best calculated to promote the child’s welfare. This is of prime consideration iff determining controversies of this kind.
This case, in our opinion, is controlled by Wyatt v. Gleason, 117 Va. 196, 83 S. E. 1069. There, the contest was between a natural parent and third parties who had the custody of the child. The court, in permitting the child to remain with its foster parents, had this to say: “Ordinarily the father is entitled to the custody of his infant child, but it is now well settled that in a controversy over the custody of a child, the court will exercise its discretion ac*345cording to the facts and continue what will be best calculated to promote the child’s welfare; and especially is this true in cases where the father has voluntarily relinquished the custody of his infant to a suitable female relative, in whose ■care the child has grown and expanded, and warm ties of affection and love have sprung up between it and its foster parents. In such cases the welfare of the child is the prime-consideration in determining the controversy. Merritt v. Swimley, 82 Va. 433, 3 Am. St. Rep. 115; Coffee and Wife v. Black, 82 Va.567; Stringfellow v. Somerville, 95 Va. 701, 29 S. E. 685, 40 L. R. A. 623; Meyer v. Meyer, 100 Va. 228, 40 S. E. 1038; Taylor v. Taylor, 103 Va. 750, 50 S. E. 273.
“We are of opinion that under the evidence in the case before us, the conclusion cannot be escaped that it would be an unwise exercise of judicial discretion to take this little girl from her present happy surroundings where she has lavished upon her the devoted love of her mother’s sister, and turn her over to those who are strangers, at least to her. All of her environments are suitable and safe and her future welfare seems assured. The proposed change would be, at best, but an experiment, which does not, from the evidence, appear to promise a better life. It is a case where, in the interest of the child’s welfare, it is clearly best to let well ■enough alone.”
The rule is reiterated in Fleshood v. Fleshood, 144 Va. 767, 130 S. E. 648.
In Markley v. Markley, 145 Va. 596, 134 S. E. 536, this court held that the ancient rule that the father, when a proper person, is always entitled to the custody of his infant ■child, has been modified by numerous decisions of this court. It has also been modified by Code, 1942 (Michie), section 5320. There, the statute provides that as between parents there shall be no presumption of law in favor • of either parent. In the Markley Case the court emphasized the fact that where the child is incapable, because of infancy, of exercising its own judgment, the court will exercise its ■discretion according to the facts and arrive at its own con*346elusion as to what will be best calculated to promote the interests of the child, having due regard to the legal rights of the party claiming the custody.
In Surber v. Bridges, 159 Va. 329, 165 S. E. 508, the court held that a father who has done nothing to forfeit his rights and who is a man of good character, possessed of a decent home, should not be deprived of his children, “even by a Croesus or an Archbishop of Canterbury, and this holds though he be poor as a pagan * * But the court there held that the child’s welfare was paramount and refused to grant custody to the father. The guiding principle in all of these cases is the welfare of the infant.
The Georgia court recently decided a case which in most respects is so similar to the one at bar that we think it helpful to refer to it. The case is Camp v. Bookman (1949), 204 Ga. 670, 51 S. E. (2d) 391. There, the father relinquished all of his rights to the child to third parties. He was shown to be unfit to have its custody. The mother’s, character and her ability to rear the child had been questioned. The father and mother were divorced and both had remarried. The fitness of the third parties to whom the child had been given by the father to rear and educate was not questioned. They were of excellent. character and financially able to carry out the obligations in connection with the child. The trial court decided that the welfare of the child would be best served by awarding the custody to them.
On appeal, the Supreme Court of Georgia affirmed the judgment of the trial court and applied the Georgia law which is quite similar to ours. It held that in habeas corpus proceedings the court has the discretion as to the possession of the child, looking solely to its interest and welfare, but that the discretion must not be arbitrary. It should be exercised and governed in accordance with the rules of law, and should be in favor of the party having the legal right unless the evidence shows that the interest and welfare of the child justify overriding the.¡rights of the person holding the legal claim. In that case,it was held that the welfare *347•of the child required it to be separated from its natural parents and turned over to third parties who are shown to be fit and proper persons to have its custody.
The record in this case does not support the judgment of the court as a matter of law. The only evidence in •chief for the father is the decree of October 9, 1948, entered in the divorce suit, which adjudicated the custody as between the father and mother. It was placed with the father. That this decree is only prima facie evidence in the present habeas corpus proceeding is conceded. The father cared so little for the child that he failed to appear in the divorce .suit and ask for the custody of the child or offer to pay for its maintenance, even though he had actual knowledge of the divorce action. According to his own testimony in rebuttal, his conduct over the years of his married life places him in a very poor light. For three years he knew the Burtons had the child and he made no contribution to them for its support and made no objection to the arrangement. He impliedly consented to it.
Russell knew that his child was critically ill with pneumonia at one time and that he was badly in need of medical .attention and hospitalization. He failed to provide it. He permitted the child to accept the charity of the American Red Cross which provided the necessary hospitalization. He failed to offer to help in any way. He has never paid any bills for the child or supplied any funds for his support during the child’s life, except the- allotments which came through the government for two and one-half years. Even now he •continues in his failure to provide any funds for his son’s support. That he has manifested slight or no interest in him is clear. It is true he has sent him a few toys at Christmas time and on birthdays, but on his way from Florida to Baltimore he passed through the town of Chester, Virginia, where the child is, and returned, without seeing him. As an •excuse he said no one was.at home when, he passed through ■on either trip. He left no word or note with anyone there that he-would return and-that he desired to see his son. If *348he can, he intends to take the child to Florida to live in surroundings strange to the child, and with those who are strangers to him. This would be, in our opinion, a dangerous experiment for the child. He would be beyond the jurisdiction of . Virginia courts, in the hands of those who have never before given him any love or manifested any real interest in his behalf..
We must, in deciding a case of this kind, take a comprehensive and broad view of the entire situation. No technical or restrictive view, which would not promote the best interests of the infant, should be adopted. This case is controlled by rules of equity. We find that the mother now has released her claims to the child to the Burtons, and has signed adoption papers in their favor. It was adjudicated in the divorce decree of January 26, 1946, that the father had abandoned and deserted his wife and child. In addition to that, he has lived with the child only six weeks in its seven years of life. His own testimony discloses that he has in fact abandoned and neglected him. So we have a case in which it might be concluded that neither of the natural parents should have the custody of the child. The decision of this case rested in the sound judicial discretion of the trial court. That court evidently exercised an erroneous discretion, based on a misconception of the facts.
In Florida the father has lived in a trailer, and has had' three jobs since he went there on January 1, 1947. It is. true that he now has purchased a home for some $9,000, on which he has paid $800. His second wife, a young woman,, agrees that she will care for the child and rear it, but from the testimony it is disclosed that she has a full-time job, and' if he has a full-time job, the child necessarily will have to. be reared by someone else.
The judgment of the trial court is reversed, and the petition for the writ of habeas corpus is dismissed.
Reversed and dismissed.