David said that to warn his men. He didn't allow them to attack Saul. So Saul left the cave and went on his way.