A tough situation plus a way out does not necessarily equal God wanting you to leave. Seek the Lord; His will for your life may be to stay the course. You never know who will be impacted and what the long term effects will be. Paul and Silas could have left the jail when the earthquake set them free, but they didn’t. A jailer and his family were saved. A church was started. Press in to God through the trials you are going through!
And when they had laid many stripes on them, they threw them into prison, commanding the jailer to keep them securely. Having received such a charge, he put them into the inner prison and fastened their feet in the stocks.
But at midnight Paul and Silas were praying and singing hymns to God, and the prisoners were listening to them. Suddenly there was a great earthquake, so that the foundations of the prison were shaken; and immediately all the doors were opened and everyone’s chains were loosed. And the keeper of the prison, awaking from sleep and seeing the prison doors open, supposing the prisoners had fled, drew his sword and was about to kill himself. But Paul called with a loud voice, saying, “Do yourself no harm, for we are all here.”
Then he called for a light, ran in, and fell down trembling before Paul and Silas. And he brought them out and said, “Sirs, what must I do to be saved?”
So they said, “Believe on the Lord Jesus Christ, and you will be saved, you and your household.” Then they spoke the word of the Lord to him and to all who were in his house. And he took them the same hour of the night and washed their stripes. And immediately he and all his family were baptized. Now when he had brought them into his house, he set food before them; and he rejoiced, having believed in God with all his household.