Jonathan meets with David again and confirms his loyalty to David as the future king. After the people of Ziph notify Saul that David is taking refuge in their territory, Saul seeks confirmation and plans to capture David in the Wilderness of Maon, but his attention is diverted by a renewed Philistine invasion and David is able to secure some respite at Ein Gedi. Returning from battle with the Philistines, Saul heads to Ein Gedi in pursuit of David and enters the cave where, as it happens, David and his supporters are hiding, "to attend to his needs". David realises he has an opportunity to kill Saul, but this is not his intention: he secretly cuts off a corner of Saul's robe, and when Saul has left the cave he comes out to pay homage to Saul as the king and to demonstrate, using the piece of robe, that he holds no malice towards Saul. The two are thus reconciled and Saul recognises David as his successor.