KJV : For it came to pass, when David <01732> was in Edom <0123>, and Joab <03097> the captain <08269> of the host <06635> was gone up <05927> (8800) to bury <06912> (8763) the slain <02491>, after he had smitten <05221> (8686) every male <02145> in Edom <0123>;
NASB : For it came about, when David was in Edom, and Joab the commander of the army had gone up to bury the slain, and had struck down every male in Edom
NASB# : For it came<1961> about, when David<1732> was in Edom<112>, and Joab<3097> the commander<8269> of the army<6635> had gone<5927> up to bury<6912> the slain<2491>, and had struck<5221> down<5221> every<3605> male<2145> in Edom<112>