15For it came about, when David was in Edom and Joab the commander of the army had gone up to bury those killed in battle, and had struck and killed every male in Edom
15For it came about, when David was in Edom, and Joab the commander of the army had gone up to bury those killed [in battle] and had struck down every male in Edom
15David had fought against Edom. Joab had been the commander of the army. He had gone up to bury the dead bodies of the Israelites who had been killed in battle. At that time he had struck down all the men in Edom.
15When David was king, he had fought against Edom's people. Joab, the leader of David's army, had gone to Edom to bury the dead Israelite soldiers. At that time, Joab killed all the men in Edom.