Prayer is not a machine.

Star Bright

“Prayer is not a machine. It is not magic. It is not advice offered to God. Our act, when we pray, must not, any more than all our other acts, be separated from the continuous act of God Himself, in which alone all finite causes operate.

It would be even worse to think those who get what they pray for as sort of court favorites, people who have influence with the throne. The refused prayer of Christ in Gethsemane is answer enough to that. And I dare no leave out the hard saying which I once heard from an experienced Christian: ‘I have seen many striking answers to prayer and more than one that I thought miraculous. But they usually come at the beginning: before conversion, or soon after it. As the Christian life proceeds, they tend to be rarer. The refusals, too, are not only more frequent; they become more unmistakable, more emphatic.’ …"

Quoting C.S. Lewis, “The Efficacy of Prayer”