At that time, says the Lord, I will be the God of all the families of Israel, and they shall be my people. Thus says the Lord: The people who survived the sword found grace in the wilderness; when Israel sought for rest, the Lord appeared to him from far away. I have loved you with an everlasting love; therefore I have continued my faithfulness to you. Again I will build you, and you shall be built, O virgin Israel! Again you shall take your tambourines, and go forth in the dance of the merrymakers. Again you shall plant vineyards on the mountains of Samaria; the planters shall plant, and shall enjoy the fruit. For there shall be a day when sentinels will call in the hill country of Ephraim: “Come, let us go up to Zion, to the Lord our God.” For thus says the Lord: Sing aloud with gladness for Jacob, and raise shouts for the chief of the nations; proclaim, give praise, and say, “Save, O Lord, your people, the remnant of Israel.”See, I am going to bring them from the land of the north, and gather them from the farthest parts of the earth, among them the blind and the lame, those with child and those in labor, together; a great company, they shall return here. With weeping they shall come, and with consolations I will lead them back, I will let them walk by brooks of water, in a straight path in which they shall not stumble; for I have become a father to Israel, and Ephraim is my firstborn. Hear the word of the Lord, O nations, and declare it in the coastlands far away; say, “He who scattered Israel will gather him, and will keep him as a shepherd a flock.” For the Lord has ransomed Jacob, and has redeemed him from hands too strong for him. They shall come and sing aloud on the height of Zion, and they shall be radiant over the goodness of the Lord, over the grain, the wine, and the oil, and over the young of the flock and the herd; their life shall become like a watered garden, and they shall never languish again. Then shall the young women rejoice in the dance, and the young men and the old shall be merry. I will turn their mourning into joy, I will comfort them, and give them gladness for sorrow. I will give the priests their fill of fatness, and my people shall be satisfied with my bounty, says the Lord. (Jeremiah 31:1-14, NRSV)
What God has scattered He is going to bring back together. God has a way of testing us and working through situations that we can not see or understand. God works through every situation to continue the works He has begun in us.
So just like a shepherd who lets their sheep roam and then brings them back together, that is what God will always do. God will work through all of the situations of our lives and bring about the life He has planned for us.
So hold fast to God and know that every season changes and God is always with you.