Job is a man who is blameless and upright that fears God and shuns evil. The reason why he was tempted by the devil until his wife ask him to denounce his faith.
Job 2:10 But he said to her, “You speak as one of the foolish women speaks. Shall we indeed accept good from God, and shall we not accept adversity?” In all this Job did not sin with his lips.
Job erroneously think that the adversity he accepted comes from God. Whatever is good and perfect comes down to us from God our Father
James 1:17 Every good gift and every perfect gift is from above, and comes down from the Father of lights, with whom there is no variation or shadow of turning.
God is never tempted to do wrong, and he never tempts anyone else.
James 1:14-15 Temptation comes from our own desires, which entice us and drag us away. These desires give birth to sinful actions. And when sin is allowed to grow, it gives birth to death.
God never gives his Children anything bad.
Luke 11:11-13 If a son asks for bread from any father among you, will he give him a stone? Or if he asks for a fish, will he give him a serpent instead of a fish? Or if he asks for an egg, will he offer him a scorpion? If you then, being evil, know how to give good gifts to your children, how much more will your heavenly Father give the Holy Spirit to those who ask Him!”
Job mistakenly accused God of giving him the adversity but still committed no sin in the eyes of God for the sin is spoken out of ignorance.
It's the opposite of the law of man where ignorance of the law excuses no one.