David attacked just before sunrise the next day and fought until sunset. Four hundred Amalekites rode away on camels, but they were the only ones who escaped.