Some will stew over how it can be possible for an omniscient God and a human prayer to mesh.
And in stewing, they don't pray.
Others skip the anguish through pure and simple faith. They realize that we will never understand the mysteries of eternity from this earthly platform in time. So they just believe, and pray.
In Isaiah 37:21, God delivered a pretty straightforward message to Hezekiah: BECAUSE YOU PRAYED... I WILL SPARE YOU.
Now what would have happened had Hezekiah not prayed? Well, we can speculate, or wish for a fuller explanation, or beg for more light on the subject. But we cannot claim ignorance of God's will.
He wants us to pray.
He wants us to pray more than He wants us to understand how prayer works.
He wants us to pray so He can show us His interest, His love, and His glory.
"Lord, teach us to pray."