13th episode of the fourth season of Star Trek: The Next Generation
Picard tries to save a terrorized planet and the Enterprise from a woman claiming to be the devil who has returned after 1,000 years to claim the planet as she was promised. Wikipedia