James 1:13

13 When tempted, no one should say, “God is tempting me.” For God cannot be tempted by evil, nor does he tempt anyone;

Read James 1:13 Using Other Translations

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:
Let no one say when he is tempted, "I am being tempted by God," for God cannot be tempted with evil, and he himself tempts no one.
And remember, when you are being tempted, do not say, “God is tempting me.” God is never tempted to do wrong, and he never tempts anyone else.