Samuel said to Saul, Yahweh sent me to anoint you to be king over his people, over Israel: now therefore listen you to the voice of the words of Yahweh.
In other words, if you're rebelling against God, that's just as bad as if you were into witchcraft. If you have a stubborn spirit, you're no better off than the person who is worshiping an idol. This business of rebellion and stubbornness is something that God is not pleased with in our lives. Rebellion is just as bad as witchcraft. Stubbornness is just as bad as idolatry.