1 Chronicles 10:13-14

13 Saul died because he was unfaithful to the LORD; he did not keep the word of the LORD and even consulted a medium for guidance,
14 and did not inquire of the LORD. So the LORD put him to death and turned the kingdom over to David son of Jesse.