God's purpose is to work all things together for good. That doesn't mean we are exempt from suffering and trials. It does mean that God is working through all of it for our good. "And we know that all things work together for good to those who love God, to those who are the called according to His purpose" (Romans 8:28). Those who are called includes every believer in the Lord Jesus Christ.
When something bad happens to us as children of God, we can always trust God to bring good out of it. That's because God is always working for good. He is good to all, especially to those who know Him as Father. So, we can praise God even on the bad days, knowing that God will bring good out of it.
When bad things happen to us as children of God, we should never doubt His goodness. That means we never blame Him for evil, though the forces of evil in this world are real. One day God will completely destroy evil. Until then, God has a purpose to fulfill in the lives of all His children. Rest assured, that purpose is good.
In the dark night of the soul, we can believe that the sun still shines, and that it shall break through our darkness with victory. Walking through the darkness can cause us to grow weary, but hope says to us, a new day is coming. Look for the morning star. We shall see a new day, when God's good purpose prevails in life. God is working all things together for good, according to His purpose.