Then Job arose and tore his robe and shaved his head, and he fell to the ground and worshiped.
He said “Naked I came from my mother’s womb, And naked I shall return there. The LORD gave and the LORD has taken away. Blessed be the name of the LORD.”
Through all this Job did not sin nor did he blame God.
Job 1:20-22 NASB
“Hasty words against God in the midst of grief are foolish and wicked. Christians are to submit to trials and still worship God, not because they see the reasons for them, but because God wills them and has His own reasons which believers are to trust.”