David saw; either by information from his spies, or by prospect from the top of the mountain where he was.
Related Commentaries of 1 Samuel 23:15
1 Samuel 23:15
15 And David saw that Saul was come out to seek his life: and David was in the wilderness of Ziph in a wood.