This is what the LORD says: See, I am setting before you the way of life and the way of death. Whoever stays in this city will die by the sword, famine or plague. But whoever goes out and surrenders to the Babylonians who are besieging you will live; he will escape with his life. (Jeremiah 21:8,9)
Strange but perfect are the ways of God. Here he asks Jeremiah the prophet to tell the Israelites that if they wanted to remain alive, they must surrender to their enemies, the Babylonians. Staying in the city or in own their homes would lead to their death.
God knows what's best for us and where we can be secure. Surrendering to the enemy was not going to be a pleasant life, but they could remain alive and come back to their homes at God's appointed time.
Long back during the time of Abraham, the Bible says,
So after Abram had been living in Canaan ten years, Sarai his wife took her Egyptian maidservant Hagar and gave her to her husband to be his wife. He slept with Hagar, and she conceived. When she knew she was pregnant, she began to despise her mistress. Then Sarai said to Abram, "You are responsible for the wrong I am suffering. I put my servant in your arms, and now that she knows she is pregnant, she despises me. May the LORD judge between you and me." "Your servant is in your hands," Abram said. "Do with her whatever you think best." Then Sarai mistreated Hagar; so she fled from her. (Genesis 16:3-6)
Hagar decided enough was enough and ran away into the desert.
The angel of the LORD found Hagar near a spring in the desert; it was the spring that is beside the road to Shur. And he said, "Hagar, servant of Sarai, where have you come from, and where are you going?" "I'm running away from my mistress Sarai," she answered. Then the angel of the LORD told her, "Go back to your mistress and submit to her." (Genesis 16:7-9)
God knew that it was in her best interest to be with Abraham at this period of her life. She was pregnant and God had a plan for her and her son. God gave her promises and sent her back.
Believe me when I say, God knows which place is best for you and your family. Move ahead only as the Spirit of God guides you. God bless you.