For rebellion is as the sin of witchcraft, and stubbornness is as idolatry and teraphim. Because you have rejected the word of Yahweh, he has also rejected you from being king.
For the Lord said, I remember the Amaleks that when you were trying to come into the land, they withstood you. And therefore God wants you to go down and utterly wipe out the Amaleks; every man, woman, child, animal. [Don't take anything back alive, utterly slay everything] ( 1 Samuel 15:2-3 ).