"Now when Peter had come to Antioch, I withstood him to his face,
because he was to be blamed; 12 for
before certain men came from James, he would eat with the Gentiles; but when
they came, he withdrew and separated himself, fearing those who were of the
circumcision."
Galatians 2:11-12
When things are wrong, our natural inclination is to determine what was the cause or who was to blame. This can be done with various motivations: to pin blame on others and excuse ourselves, in the aim to identify the problem to avoid repeating it going forward, to confirm what we predicted indeed came to pass, and the list goes on. Because we often have vested interest in where blame is placed and insistent to avoid being blamed, we may blame others wrongly. Adam attempted to shift the blame of his disobedience to Eve, and Eve sidestepped the accusation to blame the serpent. I included Paul's testimony of Peter's hypocrisy because it demonstrates there are occasions where a person (even apostles!) can be rightly blamed for doing wrong.
While people are sometimes worthy of blame, the righteous God and Creator of all things is never to be blamed--because He cannot do wrong and blame implies having a fault. God can be blamed in the sense that people may disagree with Him, but based on the good, perfect character of God, all condemnation and censure of Him is without any sound basis. Skeptics and unbelievers will not accept this and likely would accuse those any make this claim as biased, yet I would counter it is a view based on knowledge and experience. In the Paul and Peter example, Jews who observed the Law of Moses believed Peter's behaviour was right and justifiable, but after Paul's eyes had been opened by faith in Christ and born again he was able to see the situation clearly.
I remember a chat with a teenage girl during a camp years ago when she confided her concern that troubles and difficulties were "pushing her away" from God. In a sense, she was blamed God for painful circumstances in her life, for feeling rejected. While I sympathised with the girl's struggles, God was not to be blamed for her response to trouble. Her situation was revealing of a heart that was not trusting God or seeking Him. She viewed trials and pains as attacks from God against her when He was using them to draw her to Himself. The testimony of scripture shows God allows trials and troubles to prompt those who trust and fear Him to seek Him, for God never pushes people away: it is people who turn from God. For those who believe God heals and saves, trouble prompts us to seek Him earnestly rather than depart from Him.
The almighty God is a redeemer and saviour of all who cry out to Him. David sang in Psalm 25:15-16, "My
eyes are ever toward the LORD, for He shall
pluck my feet out of the net. 16 Turn Yourself to me, and have mercy on me, for I am desolate and afflicted." See the confidence David had God would deliver him from the net and would be merciful to him. David admitted he felt desolate and was afflicted, yet he acknowledged God was his only possible source of hope and help. When we are tempted to blame God or feel victimised, our eyes ought to look to the LORD who looks to show Himself strong on behalf of all those whose hearts are loyal to Him (2 Chronicles 16:9). For our sin we are to be blamed, and the glorious, gracious God is merciful to forgive even the trespass of wrongly blaming Him when we repent.