He said, "I came naked from my mothers womb,and I will be naked when I leave. The LORD gave what I had, and the LORD has taken it away.Praise the name of the LORD!"In all this,Job did not sin by blaming God."Job1:21-22"
This is what Job said while he was being tested.So many bad things happened to him that he didn't like but, he didn't go on and sin against God by blaming him on what happened.
Bad stuff happens to us during our lifetime but if you are one of the sheep of God he will be with you. God has nothing against the godly. He only punishes the wicked and when he really loves the godly he would correct them.
"God,be with me,shine your light on me,for I am your son and you are my heavenly Father,please my almighty God,I will run to and please help me in time of need, amen."