It's a good question and very foundational to understanding the Scripture.
Here's the full text of the article which I am excerting below. http://bible-truths.com/twelve.htmTo the carnal mind, the above Scriptures are contradictions, and therefore proof that the Word of God is not consistently true.
Even the greatest theologians in the world deny this truth that "All is of God," because they cannot distinguish the relative from man’s doings from the absolute which is God’s doing.
In the first example man is told to seek but is also told that no man seeks. Which is it? They are both true. No man does seek God except and until God brings about circumstances wherein he does seek God. But He only does seek God because "All is of God" who brings about the circumstances whereby someone who would not seek God, now does seek God.
In the second example we are told that God changes His mind [repents], but are also told that God is not a man who repents or changes His mind. The answers are all the same. Where it appears to many that God felt sorry for ever having created mankind, He is in reality doing only that which He had determined to do from the beginning. It is only from man’s perspective that God repented or changed His mind. God always knows the "end from the beginning," and therefore is never surprised or never thwarted or frustrated requiring a change in course or a change of plans.
A few years ago someone tried to trip me up with this verse:
"They have built also the high places of Baal, to burn their sons with fire for burnt offerings unto Baal, which I commanded not, nor spoke it neither came it into My mind" (Jer. 19:5).
Here, I was told, is absolute proof that God learns new things that He didn’t know before. Nonsense.
This is a simple problem of translating. The word translated "mind" in this verse is the Hebrew word leb, and it means the "heart with its feelings," not the mind. The King James very often confuses heart with mind and mind with soul, as if they were one and the same thing even though there are different words for each.
God’s plan and purpose for humanity consists of many, many things which are not after God’s own heart, but that are, nonetheless, absolutely essential for the completion of His plan:
"Say unto them, As I live, says the Lord God, I have no pleasure in the death of the wicked; but that the wicked turn from his way and live: turn ye, turn ye from your evil ways; for why will ye die, O house of Israel?" (Ezek. 33:11).
This is God’s HEART speaking in this verse. But in the MIND of God, the death of the wicked was absolutely necessary, and a prophesied fact that could not be avoided:
"For I will lay the land most desolate, and the pomp of her strength shall cease, and the mountains of Israel shall be desolate, that none shall pass through" (Ver. 28).
This is but another of countless examples in Scripture that show God’s mind and His heart. God takes no pleasure or delight in His heart over the horrible things that continually happen to humanity, but nonetheless, these things are absolutely essential to the fulfillment of the plan that God has devised in His mind.
It is absolute blasphemy to think or teach that God is the Creator of all that is, but then takes zero responsibility for all the evils of that creation—ALL is of God.