The story, rather the purport is very thought provoking. There cannot be a better prayer to god, other than requesting him, to give one what God thinks is divine for him, even as that person wishes/works for certain objectives. This is always better than, the person praying God asking him on his own, to give that what he prays for. Because, when we view things in retrospect, not to be on fault, God in considerable measure gives us what all we wish. But, the paradox is that, those very fulfilled desires, get us more often in to problems too. The wiser course then is to pray the God, at least this time to settle for us divinely.
The silver lining is ' faith conquers where science fails, and when science fails faith conquers '.
That's how, the Lord ' Sri Krishna ' in the ' Srimad Bhagavat Gita ' educates us, ' to see action in inaction and inaction in action '.