1 Chronicles 10:13-14 New American Standard Bible (NASB)

13. So Saul died for his trespass which he committed against the Lord, because of the word of the Lord which he did not keep; and also because he asked counsel of a medium, making inquiry of it,

14. and did not inquire of the Lord. Therefore He killed him and turned the kingdom to David the son of Jesse.

1 Chronicles 10