1 Samuel 15:8-23

8And he took Agag the king of the Amalekites alive aand devoted to destruction all the people with the edge of the sword. 9 bBut Saul and the people spared Agag and the best of the sheep and of the oxen and of the fattened calves
The meaning of the Hebrew term is uncertain
and the lambs, and all that was good, and would not utterly destroy them. All that was despised and worthless they devoted to destruction.

10The word of the Lord came to Samuel: 11 d“I regret
See also verses 29, 35
that I have made Saul king, for he has turned back from following me and fhas not performed my commandments.” And Samuel was angry, and he cried to the Lord all night.
12And Samuel rose early to meet Saul in the morning. And it was told Samuel, “Saul came to gCarmel, and behold, he set up a monument for himself and turned and passed on and went down to Gilgal.” 13And Samuel came to Saul, and Saul said to him, hBlessed be you to the Lord. I have performed the commandment of the Lord.” 14And Samuel said, “What then is this bleating of the sheep in my ears and the lowing of the oxen that I hear?” 15Saul said, “They have brought them from the Amalekites, ifor the people spared the best of the sheep and of the oxen to sacrifice to the Lord your God, and the rest we have devoted to destruction.” 16Then Samuel said to Saul, “Stop! I will tell you what the Lord said to me this night.” And he said to him, “Speak.”

17And Samuel said, jThough you are little in your own eyes, are you not the head of the tribes of Israel? The Lord anointed you king over Israel. 18And the Lord sent you on a mission and said, ‘Go, devote to destruction the sinners, the Amalekites, and fight against them until they are consumed.’ 19Why then did you not obey the voice of the Lord? kWhy did you pounce on the spoil and do what was evil in the sight of the Lord?” 20And Saul said to Samuel, l“I have obeyed the voice of the Lord. I have gone on the mission on which the Lord sent me. I have brought Agag the king of Amalek, and I have devoted the Amalekites to destruction. 21 mBut the people took of the spoil, sheep and oxen, the best of the things devoted to destruction, to sacrifice to the Lord your God in Gilgal.” 22And Samuel said,

n“Has the Lord as great delight in burnt offerings and sacrifices,
as in obeying the voice of the Lord?
Behold, oto obey is better than sacrifice,
and to listen than the fat of rams.
23For rebellion is as the sin of divination,
and presumption is as iniquity and pidolatry.
Because qyou have rejected the word of the Lord,
rhe has also rejected you from being king.”
Copyright information for ESV