Jeremiah 29:11 - 14
For I know the plans I have for you, plans to prosper you and not to harm you; to give you hope and a future. Then you will call upon me and come and pray to me, and I will listen to you. You will seek me and find me when you seek me with all your heart. "I will be found by you," declares the Lord, "and will bring you back from captivity. I will gather you from all the nations and places where I have banished you," declares the Lord, "and will bring you back to the place from which I carried you into exile." (ESV)
God says, "I know the plans I have for you..."
The plan: God carried them into exile. God brought them back.