Earlier, when David was in Edom, Joab, the commander of the army, had gone to bury the dead and had struck down every male in Edom.