So he sent David away from him and gave him command over a thousand men, and David led the troops in their campaigns.