Jim Bakker (Yes, I spelled it correctly) was an extremely wealthy and successful television evangelist when he had an affair with Jessica Hahn in 1980. His ministry continued to proper, but seven years later, he came under investigation for fraud. Among his various crimes was using donations to pay off Hahn's blackmail demands.
While in prison, Bakker made a major turn-around, confessing his guilt (although some people feel he was more guilty than he admitted), and currently runs a much-smaller ministry. But Bakker really did stop his fraud. He really has kept himself clean. God doesn't object to His children going to prison; He objects to the sins that got them there.
When Bakker eventually did produce real repentance in prison, God didn't get him out the very same day. He had to go through a period of spiritual growth before God, Who can do anything, got him out. When a Christian goes into major sin, there can still be consequences that repentance doesn't remove.