1 Samuel 18:13

18:13 Saul removed David from his presence and made him a commanding officer. David led the army out to battle and back.

1 Samuel 21:2

21:2 David replied to Ahimelech the priest, “The king instructed me to do something, but he said to me, ‘Don’t let anyone know the reason I am sending you or the instructions I have given you.’ I have told my soldiers to wait at a certain place.