God knew that Saul was coming for David.
God knew that the men of Keilah would hand David over.
God told David this in response to David’s questions.
God knows all past…present…future.
The Lord explains through Isaiah…
“For My thoughts are not your thoughts,
Nor are your ways My ways,” declares the LORD.
“For as the heavens are higher than the earth,
So are My ways higher than your ways
And My thoughts than your thoughts.
God has all foreknowledge.
This is not the same as predestining.
David fled and was therefore safe.
What God foreknew did not occur.
What He had predestined would…an example, David would ascend to the throne as king.
Rest in this truth.
Trust this truth.
The Lord foreknows.
The Lord predestines…
For those whom He foreknew, He also predestined to become conformed to the image of His Son, so that He would be the firstborn among many brethren;
and these whom He predestined, He also called; and these whom He called, He also justified; and these whom He justified, He also glorified.