The apostle Paul tells us in Romans 8:28 that all things work together for good. Notice Paul doesn't say that all things are good, but that all things work together for good.
Paul also tells us in Romans 12:16 to "readily adjust yourself to [people, things]." The idea is that we must learn to become the kind of person who plans things but who doesn't fall apart if that plan doesn't work out.
Let's say we get in our car and it won't start. There are two ways we can look at the situation. We can think, "I knew it! My plans always flop." Or we can tell ourself, "Well, I can't leave home right now, but that's ok. I believe this change in plans is going to work out for my good. God is in control."
Allow God to be the glory and lifter of our head (see Psalm 3:3). He wants to lift everything: our hopes, attitudes, moods, head, hands, heart, our entire life. Remember, even when life doesn't go according to plan, He is good. He is in control and work All things for good. When our plans don't work out, ask God to help us find the good and stay positive.
We are assured and know that [God being a partner in their labor] all things work together and are [fitting into a plan] for good to and for those who love God and are called according to [His] design and purpose. (Romans 8:28 AMP)