Eric Metaxas said this quote

Even though prayers are not offered only to get a desired result, there is little doubt that most miracles are the result of prayer. God wants us to pray to him and ask him for things, just as any loving father and mother want their children to come to them with whatever is on their minds. But if our focus is solely on getting the outcome we want, the prayer will fail, precisely because our belief is placed in the wrong place. It’s a great irony. If all we care about is the result, then we are effectively making that result our God, rather than God himself. So if we are praying to our “God”—the God of results—rather than to God himself, then we are praying to a “God” who is not God, and who is therefore powerless to help us.