David and his men went there and fiercely attacked the Philistines. They killed many of them, then led away their cattle, and rescued the people of Keilah.
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.