Every good gift comes from God  -  James 1:17

Every good gift and every perfect gift is from above, and cometh down from the Father of lights, with whom is no variableness, neither shadow of turning.

It is not unusual for people who fall into sin to blame God instead of themselves. They forget that He is not the source of sin but the source of gifts that are perfect and good as He is.