When David was fighting against Edom, Joab the general had gone up to bury the Israelite dead, and he had killed every male in Edom.