15 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.
16 Joab and all the Israelites stayed there six months, until he had finished off every male in Edom.
17 While still a youth, Hadad escaped to Egypt along with his father’s Edomite officials.
18 They set out from Midian and went to Paran. They took men with them from Paran and came to Egypt and to Pharaoh its king. Pharaoh assigned him a home, food, and land.
19 Pharaoh was so delighted with Hadad that he gave him one of his wife’s sisters for marriage, a sister of Queen Tahpenes.
20 This sister of Tahpenes bore Hadad a son, Genubath. Tahpenes weaned him in Pharaoh’s house. So it was that Genubath was raised in Pharaoh’s house, among Pharaoh’s children.
21 While in Egypt, Hadad heard that David had lain down with his ancestors and that Joab the general was also dead. Hadad said to Pharaoh, "Let me go to my homeland."