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 EdomNew International Version
Earlier when David was fighting with Edom, Joab the commander of the army, who had gone up to bury the dead, had struck down all the men in Edom.Catholic 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