1 Kings 11:14-20
14-20God incited Hadad, a descendant of the king of Edom, into hostile actions against Solomon. Years earlier, when David devastated Edom, Joab, commander of the army, on his way to bury the dead, massacred all the men of Edom. Joab and his army stayed there for six months, making sure they had killed every man in Edom. Hadad, just a boy at the time, had escaped with some of the Edomites who had worked for his father. Their escape route took them through Midian to Paran. They picked up some men in Paran and went on to Egypt and to Pharaoh king of Egypt, who gave Hadad a house, food, and even land. Pharaoh liked him so well that he gave him the sister of his wife, Queen Tahpenes, in marriage. She bore Hadad a son named Genubath who was raised like one of the royal family. Genubath grew up in the palace with Pharaoh's children.
21While living in Egypt, Hadad heard that both David and Joab, commander of the army, were dead. He approached Pharaoh and said, "Send me off with your blessing—I want to return to my country."