Not all things that happen to us are good in and of themselves, but God is good and He can cause them to work toward our good if we trust him. God makes this promise to those who love Him and are called according to His purpose. We must love God with all of our hearts, and we must want His will. We must be willing to submit to His plan at all times.
God's will: to be molded into His image. Sounds spiritual but in reality it hurts. Just think of clay being pressed into a mold. If the clay had feelings, being changed into an entirely different shape would probably be painful.
If we take a lump of clay and press it into a mold, there is always too much clay and some must be discarded. Often times there is more of us than will fit into the mold of Jesus, so thoughts, words and actions have to be discarded.
We must learn to remain steadfast, knowing that no matter how things appear now, God will work them out for our good-and in the process , He will use them to make us better people. His purpose in everything is to make us more like Jesus.