91:8.2
Prayer is not an evolution of magic; they each arose independently. Magic was an attempt to adjust Deity to conditions; prayer is the effort to adjust the personality to the will of Deity. True prayer is both moral and religious; magic is neither.