This is one of the key passages in Scripture for comfort and perspective in suffering. It calls us to trust that God works everything together for the good of his people. The heart of any comfort in suffering is the salvation that God has accomplished in Jesus Christ.
Read Romans 8:28-39