[Pray] that I may be delivered from the unbelievers in Judea, and that my service for Jerusalem may be acceptable to the saints...
Romans 15:31 ESV

Not every prayer is answered in the way we want. God used the hatred of one group of Jews for another to bring the Gospel to Rome and the Western Empire.

God gives us much leeway in how we live our lives and the choices we make from one day to the next within the bounds set by his Law, but God also has a plan which will be carried out despite all prayers to the contrary. If his plan requires that Paul be arrested in Jerusalem or that a loved one not survive a car accident, then that is what will happen. This doesn’t mean that our prayers go unanswered, but that they are often answered in ways that we wouldn’t prefer or that we didn’t expect.