Read Romans 8:17 Using Other Translations
And if children, then heirs; heirs of God, and joint-heirs with Christ; if so be that we suffer with him, that we may be also glorified together.
and if children, then heirs--heirs of God and fellow heirs with Christ, provided we suffer with him in order that we may also be glorified with him.
And since we are his children, we are his heirs. In fact, together with Christ we are heirs of God’s glory. But if we are to share his glory, we must also share his suffering.