Saul1 was going along one side of the mountain, and David and his men were on the other side, hurrying to get away from Saul. As Saul and his forces were closing in on David and his men to capture them,
References for 1 Samuel 23:26
a messenger came to Saul, saying, "Come quickly! The Philistines are raiding the land."
Then Saul broke off his pursuit of David and went to meet the Philistines. That is why they call this place Sela Hammahlekoth.
References for 1 Samuel 23:28