The ending is a take on the story "The Devil and Daniel Webster" by Stephen Benét from 1936.
The resolution to this episode bears an uncanny resemblance to that for the storyline entitled "The Devil and Homer Simpson" in the episode "Treehouse of Horror IV" from The Simpsons, aired three years after this Father Dowling episode.