James 1: 13-14 says, "When tempted, no one should say, 'God is tempting me.' For God cannot be tempted by evil, nor does he tempt anyone; but each one is tempted when, by his own evil desire, he is dragged away and enticed."
Many Christians believe that we are unable to resist temptation without God's grace. We are called to trust the Lord (not ourselves) for strength to resist temptation before it becomes sin. It is not the temptation itself that leads us to sin, but the lack of resistance and trust in the Lord for deliverance. God doesn't tempt us, but He allows us to be put into situations where our faith is tested and strengthened.