So, just what good is there in praying ? The short answer is absolutely nothing. If you are a Jew, Christian, or Muslim, then you believe in Yahweh alone, or Yahweh and his son Jesus who is said to be of one substance with him. If you're Muslim, then you believe in Allah and his prophet. But in all three cases God is believed to be Omnipotent (All powerful), Omniscient (all knowing), and Omnibenevolent (all loving and merciful).
Now if God is omniscient then he already knows infallibly everything that is ever going to happen based solely upon his every decision which he also already infallibly knows. So what good does it do to pray that your medical tests bring back good results ? What good does it do to pray that you get that new home you've so been wanting ?
At best it's even worse than hit or miss. It's even worse than a blind man trying to hit a bullseye at a thousand yards with a low powered rifle with the gun sights way off center, and this only if the Jewish, Christian, or Muslim God even exists to begin with !
If God infallibly knows the future then nothing will turn out any different than God has already infallibly seen it to occur. Does God suddenly change an eternal plan just to make your comparatively inconsequential wish a reality ? If, in fact, God does infallibly see the future, then he is locked in, he doesn't have the power to change his mind, and so is not free in a true sense, both facts in themselves contradicting God's trait of omnipotence (power without limits).
"Can God omniscient who knows the future find the omnipotence to change his future mind" ?