1 Samuel 15:2-9

ISV(i) 2 This is what the LORD of the Heavenly Armies says: ‘I’ll punish Amalek for what he did to Israel, when he set himself against Israel in the way, as they were going up from Egypt. 3 Now, go and attack Amalek. Completely destroy all that they have. Don’t spare them, but put to death both man and woman, child and infant, both ox and sheep, camel and donkey.’”
4 Saul summoned the people and mustered them in Telaim, 200,000 foot soldiers and 10,000 men from Judah. 5 Saul came to the city of Amalek and set an ambush in the valley. 6 Saul told the Kenites, “Withdraw from the Amalekites so that I don’t destroy you with them, for you showed kindness to all the Israelis when they departed from Egypt.” So the Kenites withdrew from the Amalekites. 7 Saul attacked the Amalekites from Havilah to Shur, which is east of Egypt. 8 He captured alive Agag king of Amalek, but he completely destroyed all the people, executing them with swords. 9 Saul and the people spared Agag and the best of the sheep and cattle—the fattened animals and lambs—along with all that was good. They were not willing to completely destroy them, but they did completely destroy everything that was worthless and inferior.