Exactly as we might ask God, and do ask God, to change our fate. The difference is that in the story the writer actually replies and in the end even changes his mind.