The Haunted House is the Halloween episode of The Andy Griffith Show that aired on CBS on October 7, 1963.
Barney and Gomer try to retrieve a baseball from a supposedly haunted house and find some strange goings on inside.