1 Samuel 13:12-13
12 I thought, ‘Now the Philistines will come down against me at Gilgal, and I have not sought the Lord’s favor.’ So I felt compelled to offer the burnt offering.”
13 “You acted foolishly,” Samuel said. “You have not kept the command the Lord your God gave you; if you had, he would have established your kingdom over Israel for all time.