One of the mums wants to get her biological daughter back, while the other prefers to keep the girl she has raised.

The babies were born on the same day in 2010 at the Tambo Memorial Hospital in Johannesburg, South Africa, but ended up being taken home by the wrong mother.

The families were unaware of the mix-up until one of the mothers had tests when her ex-husband refused to pay child maintenance because he believed he was not the father.

Henk Strydom, the lawyer of one of the mothers, said: "They did a paternity test and it was established that neither party was the parent of the child. They went back to the hospital and it was confirmed they had been swapped at birth.

"She was absolutely devastated. She was traumatised. My client wants her baby back. She is the biological mother of the child."

But the other mother in the case does not want to exchange the girls, leaving the North Gauteng High Court to decide if the children should be returned to their biological mothers.

The names of those involved cannot be published for legal reasons. The mothers met each other and their biological daughters last year and have been attending joint therapy sessions arranged by the hospital since December.

The court has asked the University of Pretoria's Center for Child Law to investigate what would be in the best interests of the children and report back to the judge in 90 days.

A spokeswoman at the center said: "We have been authorised to investigate the matter and to give our report and recommendations. It will be up to the court to make the final decision."

Mr Strydom compared the case with a story in the Hebrew Bible when King Solomon unveils the truth after two women claim to be the mother of a child.

He said: "Someone has to make a very difficult decision. It really is a situation on a biblical scale."