I know it is so of a truth: but how should man be just with God? If he will contend with him, he cannot answer him one of a thousand. He is wise in heart, and mighty in strength: who hath hardened himself against him, and hath prospered? (Job 9:2-4)
Job here comes to a wise conclusion: contending with God as though an equal (v.32) regarding our estate and the trials we face is the hardening of our hearts against Him. As Paul says in Romans 9, who are we to answer answer back to God?
Since God is the sovereign God and all that He has determined is ultimately good (Romans 8:28), it follows that whatever judgments He makes are good. Anger at those judgments of providence, of trial, or temptation is sinful and questions to goodness of God. Thus, it is a hardening against Him.
What is your first impulse when met with trial? Anger and despairing? Or trust in the goodness and sovereignty of God? Bring this to Him in prayer.