# When David was told this
"When David heard about this"
# gathered all Israel together
"assembled all the army of Israel together"
# against David and fought him
"against David and his soldiers and fought them"