Job 2:7-10 ESV
So Satan went out from the presence of the Lord and struck Job with loathsome sores from the sole of his foot to the crown of his head. And he took a piece of broken pottery with which to scrape himself while he sat in the ashes. Then his wife said to him, “Do you still hold fast your integrity? Curse God and die.” But he said to her, “You speak as one of the foolish women would speak. Shall we receive good from God, and shall we not receive evil?” In all this Job did not sin with his lips.
Satan struck Job with loathsome sores. Job thought God was responsible, but still refused to turn his back on Him. Even when Job’s wife told him to curse God and die, Job rebuked her. Truly Job was just as God had described him, a blameless and upright man, who [feared] God and [turned] away from evil.
Job may not have understood what was happening, or why, but he continued to trust God even when he thought God was attacking him.
How often to we misunderstand our own circumstances, but doubt God–maybe even curse Him?