(because for six months Joab remained there with all Israel, until he had cut down every male in Edom),
And they warred against the Midianites, just as the Lord commanded Moses, and they killed all the males.
For it happened, when David was in Edom, and Joab the commander of the army had gone up to bury the slain, after he had killed every male in Edom
that Hadad fled to go to Egypt, he and certain Edomites of his father’s servants with him. Hadad was still a little child.