Because you did not obey Yahweh’s voice, and did not carry out his fierce wrath against Amalek, Yahweh has done this to you today.
In context
16Samuel said, “Why do you ask me, when Yahweh has turned away from you and become your enemy? 17Yahweh has done exactly as he spoke through me — Yahweh has torn the kingdom out of your hand and given it to your neighbor, David. 18Because you did not obey Yahweh’s voice, and did not carry out his fierce wrath against Amalek, Yahweh has done this to you today. 19What is more, Yahweh will hand Israel, along with you, over to the Philistines, and tomorrow you and your sons will be with me. Yahweh will also hand the army of Israel over to the Philistines.” 20Saul immediately fell full length on the ground, terrified by Samuel’s words. He had no strength left, for he had eaten nothing all day and all night.