Police in Brits in the North West province arrested a 41-year-old woman for leaving her newborn baby in a pit toilet.
Spokesperson Colonel Amanda Funani says the mother will be charged with attempted murder after the baby boy was found alive on Sunday.
She says a neighbour heard a baby crying from the toilet and called members of the community to assist.
Emergency workers managed to take him out and rushed him to the Brits hospital where he was treated.
Funani says following an intensive search and investigation by the police, the baby's mother was arrested on Monday, at a clinic in Jericho.
She was taken to hospital where she was admitted under police guard.
The suspect appeared in absentia on Wednesday in the Brits Magistrate's Court for attempted murder.
She will re-appear before the same court after being discharged from the hospital.
- African News Agency (ANA)