Classic short story by Ambrose Bierce.

An Occurrence at Owl Creek Bridge