Sometimes we might be tempted to think that God is not answering or prayers, or that He is answering them the opposite of what we asked. But that is the time we might need to step back and look at the whole picture from a different viewpoint.
God is writing the story, and we may be in the midst of a very difficult chapter, but the story is not yet finished. That is why we need to have the eye of faith to hope for a better outcome. When the disciples were watching the crucifixion, they felt lost and disappointed. But God had already planned the resurrection and victory was coming just three days out.
We have to remember that recurring theme of death and resurrection that God loves to weave into His stories. This is why the psalmist can fear no evil in the valley of the shadow of death. This is why we can expect God to work all things for good, even those things that look (from our perspective) hopelessly tangled. Faith is not what we see, but what we don’t see. Faith remembers the Author and Finisher of our faith. Faith looks forward to the resurrection.