God knows best
In our self-deception, we can sometimes think that we know better than God. I've heard people actually say it. But even if someone won't say it, they can act like they know better than God. Some of the ways this manifests itself is discontentment, grumbling, and disobedience. We are unhappy with our circumstances because we think they should've gone another way. We grumble out of our discontentment. And whenever we sin, are we not implying that our way is better than God's way?
The reality is that we don't have a leg to stand on. We don't know better than God. God knows best.
Job acted like he knew better than God. He demanded an audience with God the Judge, to show that he didn't deserve the suffering he was going through. For four chapters straight, God silences Job with this theme: Job doesn't know better than God does.
At one point, God says,
"Shall a faultfinder contend with the Almighty? He who argues with God, let him answer it." (Job 40:2)
You see, when Job wanted to plead his case before God, it implied that God did not know what He was doing and that He was at fault. But, of course, that's a foolish concept. The God whom we serve knows all things and does all that He pleases. What that means is that He knows what He's doing and does exactly according to His will. Job, in his discontentment, implied that God had done something wrong. And God was willing to face the charges. But those charges would not hold up. Thus, Job's response is repentance and silence (vv. 3-4).
In our circumstances, our sufferings, and our temptations, we might wrongly think we know better than God does. But that's the furthest thing from the truth. We know nothing. He knows everything. And He can do anything. And He is good. What that means, then, is that we should submit to God's perfect will. Nothing happens outside of His good purposes. And whatever we experience, we can trust that God is all-powerful, all-good, and that He is working out all things for His glory and for our good.