James 1:13-14 NIV
13 When tempted, no one should say, “God is tempting me.” For God cannot be tempted by evil, nor does he tempt anyone; 14 but each person is tempted when they are dragged away by their own evil desire and enticed.
When we are tempted, and sin why do we say “the Devil made me do it” or God put the temptation before me? God hates sin. God has no evil in Him. Learn to deal with trials and temptations and when they come lean of your faith, pray, and ask God to give you strength to endure the temptations. We call this test of faith. Because when we sin, we do so of our own freewill. ON THE WAY HOME WALK WITH JESUS and know God never wants us to sin and we need to thank Him that He is full of grace and mercy enough to forgive us when we do.