Berean Standard Bible (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.
World English Bible (WEB)
For it happened, when David was in Edom, and Joab the captain of the army was gone up to bury the slain, and had struck every male in Edom
Strong's King James
For it came to pass, when David{H1732} was in Edom{H123}, and Joab{H3097} the captain{H8269} of the host{H6635} was gone up{H5927}{(H8800)} to bury{H6912}{(H8763)} the slain{H2491}, after he had smitten{H5221}{(H8686)} every male{H2145} in Edom{H123};
The F.O.G *
The F.O.G Message *
Young's Literal Translation
and it cometh to pass, in David’s being with Edom, in the going up of Joab head of the host to bury the slain, that he smiteth every male in Edom—