Because demons are such deceivers (and have turned millions away from the truth), God has forbidden communication with spirits or attempted consultation of the dead: “Let no one be found among you...who is a medium or spiritist or who consults the dead. Anyone who does these things is detestable to the Lord...” (Deut. 18:10a,11b,12a). “When men tell you to consult mediums and spiritists, who whisper and mutter, should not a people inquire of their God? Why consult the dead on behalf of the living?” (Isa. 8:19,20). (The warning is not even to try to contact the “dead,” since in the vast majority of cases, they probably are not the ones being consulted.)
Could it mean when consulting the dead he means the Evil spirits?
Could you tell me what happened here?
Samuel said to Saul, “Why have you disturbed me by bringing me up?” “I am in great distress,” Saul said. “The Philistines are fighting against me, and God has turned away from me. He no longer answers me, either by prophets or by dreams. So I have called on you to tell me what to do.”
Samuel said, “Why do you consult me, now that the Lord has turned away from you and become your enemy?
The Lord has done what he predicted through me. The Lord has torn the kingdom out of your hands and given it to one of your neighbors—to David.
Because you did not obey the Lord or carry out his fierce wrath against the Amalekites, the Lord has done this to you today.
The Lord will hand over both Israel and you to the Philistines, and tomorrow you and your sons will be with me. The Lord will also hand over the army of Israel to the Philistines.”
Immediately Saul fell full length on the ground, filled with fear because of Samuel’s words. His strength was gone, for he had eaten nothing all that day and night (1 Sam. 28:15-20).
Note that nowhere in this entire passage does it indicate that the spirit conversing with Saul was anyone other than Samuel himself. In fact, each place where the spirit speaks, the textual inference is that Samuel, and no one else, is the speaker. One of the most convincing indications that the spirit indeed was Samuel is this statement made to Saul, evidently the confirmation and fulfillment of a prediction Samuel had made while still alive: “The Lord has done what he predicted through me. The Lord has torn the kingdom out of your hands and given it to one of your neighbors—to David” (1 Sam. 28:17). Samuel, when he was alive, had spoken virtually identical words to Saul: “The Lord has torn the kingdom of Israel from you today and has given it to one of your neighbors—to one better than you [that is, David]” (1 Sam. 15:28).
There is a case in scripture where a lying spirit volunteered to influence the prophets of King Ahab of Israel to lie to him and deceive him (1 Kng. 22:19-23) In opposite to what happened above with samuel.
There are numerous examples in the Bible where angels ministered (that is, gave aid, service, encouragement, and strength) to people. Good angels “...are ministering spirits sent to serve those who will inherit salvation” (Heb. 1:14). When the prophet Elijah ran for his life from the wicked Jezebel, who wanted him dead, he fled into the desert. Tired of the persecution, he prayed that he would die (1 Kng. 19:2-4). As he slept under a tree,
...an angel touched him and said, “Get up and eat.” He looked around, and there by his head was a cake of bread baked over hot coals, and a jar of water. He ate and drank and then lay down again.
The angel of the Lord came back a second time and touched him and said, “Get up and eat, for the journey is too much for you.” So he got up and ate and drank. Strengthened by that food, he traveled forty days and forty nights... (1 Kng. 19:5-8).
Peace