For example: in the book of Exodus, Moses confronts Egypt's Pharoah and does a trick that divine inspiration told him to do. Pharoah calls his court magicians and orders them to duplicate it. They do, but Moses trumps their tricks. Moses proceeds to do more "magic" that just dumfounds the Egyptians.
In more modern times, magicians often try to duplicate religious magic: for instance, turning water into wine was one that Christ Jesus did originally. Tricks of levitation were probably demonstrations again from the Bible of Jesus ascending. I think that these and other magics were part of theatrical presentations about the gospels.
In the super-popular Harry Potter and Lord of the Rings books, magic is a power that can be used for good or evil--like the "Force" in the Star Wars movies and as most religions hold, the eternal battle between God and the Devil.
We all possess some "magical" or God-derived powers. Use them well.