1 Kings 11:15-17
New International Version
15 Earlier when David was fighting with Edom, Joab the commander of the army, who had gone up to bury the dead, had struck down all the men in Edom.(A) 16 Joab and all the Israelites stayed there for six months, until they had destroyed all the men in Edom. 17 But Hadad, still only a boy, fled to Egypt with some Edomite officials who had served his father.