All of us have asked God for something and not gotten it. When this happens we generally believe that God hasn’t answered our prayer. That isn’t necessarily the case. Jesus said:
Which one of you, if his son asks him for bread, will give him a stone? Or if he asks for a fish, will give him a serpent? If you then, who are evil, know how to give good gifts to your children, how much more will your Father who is in heaven give good things to those who ask him!
He didn’t say our Father would give us the things we ask for; he said he would give us good things, which isn’t always the same thing.
In the example Jesus gave the son was hungry and asked for bread and a fish. These were good things to ask for so his father gave them to him. But what if he had asked for a stone and a serpent in the mistaken belief that they would satisfy his hunger? It would be cruel to actually give him these things because they would hurt him instead of helping him. A good father would realize this and would give him bread and a fish instead. He wouldn’t be giving the son what he asked for but he would be answering his request by giving him what he really needed.
We often make the same mistake as the boy who asked for a stone. We are aware of a need but we have a false idea of what would satisfy that need. As a result we ask for things that would hurt us instead of helping us. If you have asked for something and not received it look at the things God has given you. You might find that God has answered your prayer by giving you what you really need instead of what you asked for.