1st Samuel 27:1-4
David and his 600 men escaped from Saul to live with the Philistines, so Saul stopped looking for him.
1st Samuel 27:5-6
David asked Achish to give him some town to live in, so he gave David Ziklag.
1st Samuel 27:7-12
While David lived with the Philistines, he was secretly destroying different kinds of nations, but he told Achish that he went against the Israelites.