1 Samuel 23:12
Then said David, Will the men of Keilah deliver me and my men into the hand of Saul? And the LORD said, They will deliver thee up. Then said David, Will the men of Keilah deliver me and my men into the hand of Saul? And the LORD said, They will deliver thee up.
Fleeing from Saul, David asked through the priest's ephod whether the men of Keilah would hand him and his men over to Saul, and the Lord answered plainly that they would. That answer told what they would choose if he stayed, with Saul's coming down itself depending on David's remaining there. The handing over never took place, because David left Keilah and Saul did not come down. The prediction was therefore conditional rather than an unchangeable decree, showing that a foretold threatened outcome can be averted by a change in human conduct. God's foreknowledge did not compel David to stay or make him a mere machine, but left him free to act on the warning and escape, just as salvation turns on whether people choose to accept God's freely offered grace.
Historical Setting and Inquiry
The verse belongs to the history of David's flight from Saul, when Saul sought to kill David while David remained loyal to him, a history that teaches that it is safe to commit one's cause to God. It stands within the contrasted careers of Saul in rashness, weakness, failure, rejection and an ever downward course and David in choosing and a checkered but ever-rising career. That larger narrative shows God's providence shaping and molding national events while remembering the promised Seed, and it throws light on the habits and customs of the people and the influence of surrounding nations.
In urgent danger David consulted the Lord through the high priest's ephod and breastplate of judgment, which were used to receive oracular answers to weighty personal questions. He asked through that priestly oracle whether the men of Keilah would hand him and his men over to Saul. The answer was brief, direct and accurate, disclosing the situation: they would deliver him up.
That answer gave knowledge of what would happen but no direct instruction about what David should do, leaving David responsible for deciding how to act on what he had sought. The history teaches mercy and magnanimity toward an enemy and that it is safe to commit one's cause to God and leave it in His hand.
Conditional Foreknowledge and Choice
The answer told David that if he remained in Keilah Saul would come down and the men of the city would hand him and his men over to Saul. It set forth what those men would freely choose to do under those stated circumstances, not an event fixed to happen regardless of choices made.
Because David left Keilah, Saul did not come down and the handing over never took place. That non-occurrence through David's leaving shows the prediction was conditional and not an unchangeable decree. It shows that a divine prediction of threatened events can be averted when a change in human conduct changes the outcome God has declared.
Knowing beforehand what the men would do did not compel David to stay nor make him a mere machine without power to decide. He remained free to stay or to leave, and the warning itself enabled him to act so that he escaped. In the same way foreknowledge generally leaves human choice intact, and salvation itself turns on whether each person chooses to accept and use the grace freely offered.