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.
Jewish Publication Society of America Version (JPS1917) - 1 Kings 11:15 >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 —