15 For it came to pass, when David was in Edom, and Joab the captain of the host was gone up to bury the slain, and had smitten every male in Edom;
16 (for Joab and all Israel remained there six months, until he had cut off every male in Edom;)
17 that Hadad fled, he and certain Edomites of his father's servants with him, to go into Egypt; Hadad being yet a little child.
18 And they arose out of Midian, and came to Paran: and they took men with them out of Paran, and they came to Egypt unto Pharaoh king of Egypt; which gave him an house, and appointed him victuals, and gave him land.
19 And Hadad found great favour in the sight of Pharaoh, so that he gave him to wife the sister of his own wife, the sister of Tahpenes the queen,
20 And the sister of Tahpenes bare him Genubath his son, whom Tahpenes weaned in Pharaoh's house: and Genubath was in Pharaoh's house among the sons of Pharaoh.
21 And when Hadad heard in Egypt that David slept with his fathers, and that Joab the captain of the host was dead, Hadad said to Pharaoh, Let me depart, that I may go to mine own country.