15 For when David was in Edom, and Joab the captain of the army had gone up to bury the slain, and had struck every male in Edom
16 (for Joab and all Israel remained there six months, until he had cut off every male in Edom);
17 Hadad fled, he and certain Edomites of his father’s servants with him, to go into Egypt, when Hadad was still a little child.
18 They arose out of Midian, and came to Paran; and they took men with them out of Paran, and they came to Egypt, to Pharaoh king of Egypt, who gave him a house, and appointed him food, and gave him land.
19 Hadad found great favor in the sight of Pharaoh, so that he gave him as wife the sister of his own wife, the sister of Tahpenes the queen.
20 The sister of Tahpenes bore him Genubath his son, whom Tahpenes weaned in Pharaoh’s house; and Genubath was in Pharaoh’s house among the sons of Pharaoh.
21 When Hadad heard in Egypt that David slept with his fathers, and that Joab the captain of the army was dead, Hadad said to Pharaoh, “Let me depart, that I may go to my own country.”