An alleged pastor accused of raping a woman is set to appear in the Atteridgeville Magistrates Court on Monday.

He's also linked to the murder of her four-month-old baby, whose body was found in a shallow grave near the Hennops River last Wednesday.

ALSO READ: Manhunt underway for Gauteng pastor after woman raped, her baby killed

The 36-year-old man was arrested on Saturday in Diepsloot.

Police had been searching for the suspect since Wednesday, when the 43-year-old woman was allegedly bound and assaulted.

She had gone to the Hennops River with the pastor and his 24-year-old wife for a ritual.

The man's wife was later tracked down by police, and she led them to the shallow grave.

Police later arrested a second wife. Both women will join their husband in the dock on Monday.

He was found hiding in a back room in a Diepsloot informal settlement with injuries.

Never miss a major story. Get breaking news and the latest developments from South Africa and beyond as they happen.