God does not promise us as humans, omniscience, so we cannot know for sure the significance of the timing , circumstances and results of any situation we face. We sometimes suffer because of the sins of others, because of our own sins or because of evil and chaos in the world. God gives us hope because he can redeem the consequences of sin in a way that is for our good and his glory. Joseph's life is a good example. We can also see examples in the lives of the prophets and the apostle Paul.