I Samuel 13:9-15 NKJV
So Saul said, “Bring a burnt offering and peace offerings here to me.” And he offered the burnt offering. Now it happened, as soon as he had finished presenting the burnt offering, that Samuel came; and Saul went out to meet him, that he might greet him.
And Samuel said, “What have you done?”
Saul said, “When I saw that the people were scattered from me, and that you did not come within the days appointed, and that the Philistines gathered together at Michmash, then I said, ‘The Philistines will now come down on me at Gilgal, and I have not made supplication to the LORD.’ Therefore I felt compelled, and offered a burnt offering.”
And Samuel said to Saul, “You have done foolishly. You have not kept the commandment of the LORD your God, which He commanded you. For now the LORD would have established your kingdom over Israel forever. But now your kingdom shall not continue. The LORD has sought for Himself a man after His own heart, and the LORD has commanded him to be commander over His people, because you have not kept what the LORD commanded you.”
Then Samuel arose and went up from Gilgal to Gibeah of Benjamin. And Saul numbered the people present with him, about six hundred men.
NKJV: New King James Version