1 Samuel 13
Saul and Jonathan were leading the Israelites against the Philistines in battle, but the Israelite army began "quaking with fear" when they became hard pressed and "hid in caves and thickets among the rocks and in pits and cisterns". Saul was waiting for Samuel to come offer up the burnt offering and the fellowship offering in order to seek the Lord's favor in the battle, but Samuel was late. When Samuel didn't arrive at the arranged time to perform the offerings unto the Lord, Saul disobeyed the Lord's command and he offered up the offerings himself. When Samuel finally arrived, he said to Saul "you have done a foolish thing and 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. But now your kingdom will not endure; the Lord has sought out a man after his own heart and appointed him ruler of his people, because you have not kept the Lord's command".