James says God cannot be tempted with evil and "he himself tempts no one" (James 1:13). He explains that temptation comes when a person is lured by his own desire (James 1:14).
James 1:12–18 contrasts two “sources” for human testing and action. The person who keeps going through James 1:12 is called blessed and is promised “the crown of life.” But when someone is being tempted toward evil, they must not blame God: God neither responds to evil temptation nor tempts anyone. This unit continues James’s opening emphasis on trials and endurance (earlier in chapter 1), but it narrows the focus: not every “trial” is the same as being pulled toward evil.
James 1:12–18 draws a sharp line between testing that must be endured and temptation toward evil that must not be blamed on God. The passage explicitly says the person who endures is “blessed” and will receive “the crown of life,” promised “to those who love the Lord” (James 1:12).
A careful answer keeps the immediate passage, the book's argument, and the whole-Bible storyline together, so the question is answered in context instead of as a detached idea.
Start with James 1:13, then read the surrounding section so the answer stays connected to the passage's flow.
13Let no man say when he is tempted, "I am tempted by God," for God can`t be tempted with evil, and he himself tempts no one.