1 Samuel 29:2-4

ISV(i) 2 The Philistine leaders were passing in review among the military units, and David and his men were among them in the rear with Achish.
3 The Philistine leaders said, “What are these Hebrews doing here?”
Achish asked the Philistine leaders, “Isn’t this David, the servant of King Saul of Israel, who has been with me these days, or rather these years? I’ve found no fault in him from the day he deserted until now.”
4 But the Philistine leaders were angry with him, so they pleaded with him, “Send the man back! Let him return to the place you assigned him. He mustn’t go into battle with us. Otherwise, he may become our adversary in the battle! How could there be a better way for this fellow to reconcile himself with his lord? Wouldn’t it be with the heads of these men?