1 Samuel 17:20

17:20 So David got up early in the morning and entrusted the flock to someone else who would watch over it. After loading up, he went just as Jesse had instructed him. He arrived at the camp as the army was going out to the battle lines shouting its battle cry.

1 Samuel 29:4

29:4 But the leaders of the Philistines became angry with him and said to him, “Send the man back! Let him return to the place that you assigned him! Don’t let him go down with us into the battle, for he might become our adversary in the battle. What better way to please his lord than with the heads of these men?