I don't see the connection between dreams and prayers. I think it's not a "miracle" that for example Einstein solved some kind of logical theories in his dreams, just as I have come up with solutions to problems in my own dreams. But that has absolutely nothing to do with prayers (Einstein didn't believe in personal gods who listen/answer prayers).