This is how it happened: Earlier David defeated Edom. Joab was the commander of David’s army. Joab went into Edom to bury dead people. Joab killed all the men still living there.
The Lord said to her, “Two nations are in your body. The rulers of two families will be born from you. And they will be divided. One son will be stronger than the other. The older son will serve the younger.”
David put groups of soldiers in Edom. He put these groups of soldiers through all the land of Edom. All the people of Edom became servants of David. The Lord gave victory to David every place he went.
Now, kill all the Midianite boys. And kill all the Midianite women who had lived with a man. Kill all the Midianite women who have had sexual relations with any man.