I have a theory about prayer.
There are things we pray for that are not really God's will for us. But sometimes
God lets us have them anyway, so that we can find out for ourselves that the
grass isn't always greener on the other side.
A classic example is the prodigal son, he asked the Father for his inheritance now, a
real insult since the Father was still alive! It was almost as if he did not trust the Father to
do what was best for him and he wanted to do things his own way.
The biggest mystery in this tale is that the Father let the prodigal son have his way!
Later on we read how the prodigal son came to his senses and realised what a massive
error of judgement he had made, he fearfully returned back to the Father, but the Father was
looking out for Him, He never abandoned the son but he did allow the son space to make
mistakes.
If the above applies to the OP, there is always a way back, go speak to the Father.
BUT and it's a big BUT, consider carefully if maybe it was a genuine answer to prayer,
just because it didn't work out the way you wanted, doesn't mean it was a mistake, maybe
its a stepping stone to the next part.
Ask God to reveal to you what you should do.