1 Samuel 28:5-19

5 When Saul saw the army of the Philistines, he was afraid, and his heart trembled greatly.
6 When Saul inquired of the Lord, the Lord did not answer him, not by dreams, or by Urim, or by prophets.
7 Then Saul said to his servants, "Seek out for me a woman who is a medium, so that I may go to her and inquire of her." His servants said to him, "There is a medium at Endor."
8 So Saul disguised himself and put on other clothes and went there, he and two men with him. They came to the woman by night. And he said, "Consult a spirit for me, and bring up for me the one whom I name to you."
9 The woman said to him, "Surely you know what Saul has done, how he has cut off the mediums and the wizards from the land. Why then are you laying a snare for my life to bring about my death?"
10 But Saul swore to her by the Lord, "As the Lord lives, no punishment shall come upon you for this thing."
11 Then the woman said, "Whom shall I bring up for you?" He answered, "Bring up Samuel for me."
12 When the woman saw Samuel, she cried out with a loud voice; and the woman said to Saul, "Why have you deceived me? You are Saul!"
13 The king said to her, "Have no fear; what do you see?" The woman said to Saul, "I see a divine being coming up out of the ground."
14 He said to her, "What is his appearance?" She said, "An old man is coming up; he is wrapped in a robe." So Saul knew that it was Samuel, and he bowed with his face to the ground, and did obeisance.
15 Then Samuel said to Saul, "Why have you disturbed me by bringing me up?" Saul answered, "I am in great distress, for the Philistines are warring against me, and God has turned away from me and answers me no more, either by prophets or by dreams; so I have summoned you to tell me what I should do."
16 Samuel said, "Why then do you ask me, since the Lord has turned from you and become your enemy?
17 The Lord has done to you just as he spoke by me; for the Lord has torn the kingdom out of your hand, and given it to your neighbor, David.
18 Because you did not obey the voice of the Lord, and did not carry out his fierce wrath against Amalek, therefore the Lord has done this thing to you today.
19 Moreover the Lord will give Israel along with you into the hands of the Philistines; and tomorrow you and your sons shall be with me; the Lord will also give the army of Israel into the hands of the Philistines."