King James Version
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;English Standard Version
For when David was in Edom, and Joab the commander of the army went up to bury the slain, he struck down every male in EdomCatholic Public Domain Version
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