James 1:13 ¶ Let no man say when he is tempted, I am tempted of God: for God cannot be tempted with evil, neither tempteth he any man:
14 But every man is tempted, when he is drawn away of his own lust, and enticed.
15 Then when lust hath conceived, it bringeth forth sin: and sin, when it is finished, bringeth forth death.
Romans 9:22 What if God, willing to shew his wrath, and to make his power known, endured with much longsuffering the vessels of wrath fitted to destruction:
23 And that he might make known the riches of his glory on the vessels of mercy, which he had afore prepared unto glory,
Isaiah 47:7 I form the light, and create darkness: I make peace, and create evil: I the LORD do all these things.
Although God created the darkness in order that He might be known as the light, He does not tempt man. Since He is the only Creator, He must know the rules of creation and we don't. He says in Romans that He suffers this evils existence for a time, but this time will end and evil will be done away with forever when all the sons of God have been revealed.