Keep the word of the Lord, go to him for directions, and live!

So death came to Saul because of the sin which he did against the Lord, that is, because of the word of the Lord which he kept not; and because he went for directions to one who had an evil spirit,
1 Chronicles 10:13

And not to the Lord: for this reason, he put him to death and gave the kingdom to David, the son of Jesse.
1 Chronicles 10:14