My favorite book in the Bible is definitely Job, wherein instead of protecting his faithful follower, God gambles with his health and family and worldly possessions, explicitly permits him to be tortured, his family to be murdered.
To win a bet with Satan. Never mind that this is a rigged bet and God is cheating because God is omniscient and knows in advance what Job will do, no God has a point to prove /to Satan/, and that in itself is all the reason God needs to completely abandon someone who continuously believes and prays for assistance. It's a true miracle brought by prayer.
And when it's all over, God "gives" (ie. allows Job to find a new wife and for that new wife to conceive) more children than Job originally had, as if that somehow made up for the original murders. What's more, when Job CALLS GOD OUT on his immorality, God gives him a dressing down for Job DARING to be upset at God murdering his sons and using the devil as the hitman.
A+ stuff there.
The RIGHT thing for a god to do in that position is to say to Satan, "I don't need to bet with you, I'm God. He doesn't curse my name. And since I don't lie, you know that's what happens, so you lose the bet." Or more aptly, "How in the where you are supposed to be locked did you get back up here again anyways?"