Earlier, when David was at war with Edom, Joab, commander of the army, went up to bury the slain, and had struck down every male in Edom.