We know that in everything God works for good with those who love him, who are called according to his purpose.
In context
26In the same way the Spirit comes to the aid of our weakness. We do not know how to pray as we should, but the Spirit himself pleads for us with groans beyond words. 27And he who searches our hearts knows the mind of the Spirit, because the Spirit pleads for the saints as God would have it. 28We know that in everything God works for good with those who love him, who are called according to his purpose. 29Those he knew beforehand he also marked out beforehand to be shaped to the image of his Son, so that his Son might be the firstborn among many brothers. 30And those he marked out beforehand he also called; those he called he also justified; and those he justified he also glorified.