Biblical literature
1 Samuel 28:7–20
Facing battle and receiving no answer, Saul seeks a medium at Endor despite his earlier ban on such practices. The narrative calls the appearing figure Samuel, who confronts Saul and announces defeat and death. Saul collapses in fear before returning to the battle awaiting him.
This is a particular literary apparition, not a creation story for all ghosts or proof of modern sightings.
Read the source