During David's military campaign against Edom, when his army commander Joab had gone out to bury the dead, he killed every male in Edom. 