God’s Plans and Our Plans 

Tim Keller writes:

According to the Bible, God plans our plans.  Proverbs 16:9 says, “The heart of man plans his way, but the Lord establishes his steps.” The author assumes that while we make our plans, they only fit into the larger plans of God.
There are many texts that weave free will and divine sovereignty together in ways that startle us. In Genesis 50:20, Joseph explains how his brothers’ evil action of selling him into slavery was used by God to do great good. “You intended me harm, but God intended it for good to accomplish what is now being done, the saving of many lives.” Notice Joseph assuming that what they did was evil—they “intended” harm, it was deliberate. Yet he says God’s plan overruled and used Joseph’s troubles and sorrows for his own good purposes.
The New Testament version of Joseph’s saying is Romans 8:28—”All things work together for good to them who love God.”
In Acts 2:23, Peter again tells us Jesus was crucified “according to the definite plan” of God, and yet the hands that put him to death were guilty of injusdee and “lawlessness.” In other words, the death of Jesus was destined to happen by God’s will—it was not possible that it would not happen. Yet no one who betrayed and put Jesus to death was forced to do it. They all freely chose what they did and were fully liable and responsible for their decisions. Jesus himself puts these truths together in one sentence: “The Son of Man will go [to his death] as it has been decreed, but woe to that man who betrays him” (Luke 22:22).
One of the most fascinating examples of this biblical perspective is found in the account of Moses’ confrontation with Pharaoh in Exodus 7-14. Moses continually calls Pharaoh to release the Israelites from bondage and declares that this is the will of God. Over several chapters the text tells us Pharaoh “hardened” his heart and he stubbornly refused to let the people go. This obstinate refusal led to untold misery and death for the Egyptians. But the text is fascinating, because it tells us that God hardened Pharaoh’s heart (Ex 7:3; 9:12; 10:1; 11:10; 14:4, 8) almost the same number of times it tells us Pharaoh hardened his own heart (Ex 8:15, 32; 9:34; 10:3; 13:15). So which is it?
Did God do it or did Pharaoh do it? The biblical answer to both is yes.
Look at the sins in the life of the patriarch Jacob, whose life is recounted in the book of Genesis. Jacob deceived his father and robbed his brother; as a result, he had to flee his homeland and experienced great suffering and injustice in a foreign land. Yet there he met the love of his life and had the children through which Jesus was descended. It is clear that his sin did not put him into a “plan B” for his life. It was all part of God’s perfect plan for him and even for the salvation of the world. Was he therefore not responsible for his sin? No, he was. Did he not suffer consequences for his foolish behavior? Yes, he did. But God was infallibly in control, even as Jacob was completely responsible.
In the end, the Christian concept of God’s sovereignty is a marvelous, practical principle. No one can claim to know exactly how both of these truths fit together. And yet even in our own ordinary experience, we know something of how to direct people along a path without violating their free will. Good leaders do this in part—why would the infinite God not be able to do it perfectly? The sovereignty of God is mysterious but not contradictory. It means that we have great incentive to use our wisdom and our will to the best effect, knowing God holds us to it and knowing we will suffer consequences from foolishness and wickedness. On the other hand, there is an absolute promise that we cannot ultimately mess up our lives. Even our failures and troubles will be used for God’s glory and our benefit. I don’t know a more comforting assurance than that. “God performs all things for me!” cries the psalmist (Ps 57:2).
This teaching has both high-level and practical implications for how we approach suffering. At one level, this means that, as Don Carson writes: “It must be the case that God stands behind good and evil in somewhat different ways; that is, he stands behind good and evil asymmetrically.”  While moral evil cannot be done outside the bounds of God’s purposes, “the evil is not morally chargeable to him” since the perpetrators are responsible. Yet since all good impulses in the human heart come ultimately from God (James 1:17) —when good things happen, they are directly attributable to him.
At the most practical level, we have the crucial assurance that even wickedness and tragedy, which we know was not part of God’s original design, is nonetheless being woven into a wise plan. So the promise of Romans 8, “that all things work together for good,” is an incomparable comfort to believers.

(Walking with God through Pain and Suffering, Chapter 6)