Why do the righteous suffer?

Why do the righteous suffer? Is all suffering for the sake of God? How do we reconcile the fact that God is good and God is sovereign with the fact that there is evil in the world? Does God somehow ordain evil and suffering? Why do the plans of the wicked prosper?