In 1898 H.G. Wells wrote a short story called “The Man Who Could Work Miracles” . It was made into a movie in 1936 and is one of my favorites.
Rather dark IIRC. Not a particularly positive view of the human spirit.