BSB
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.
AKJV
For it came to pass, when David was in Edom, and Joab the captain of the host was gone up to bury the slain, after he had smitten every male in Edom;
CPDV
For when David was in Idumea, Joab, the leader of the military, had ascended to bury those who had been killed, and he had killed every male in Idumea.
ERV
For it came to pass, when David was in Edom, and Joab the captain of the host was gone up to bury the slain, and had smitten every male in Edom;
NHEB
For it happened, when David had conquered Edom, and Joab the commander of the army was gone up to bury the slain, and had struck every male in Edom
SMT
And it will be in David's being in Edom, and in Joab the chief of the army going up, he came to bury the slain, and he will strike every male in Edom;