16 Joab and all the Israelites stayed in Edom for six months and killed every male in Edom.
17 At that time Hadad was only a young boy, so he ran away to Egypt with some of his father’s officers.
18 They left Midian and went to Paran, where they were joined by other men. Then they all went to Egypt to see the king, who gave Hadad a house, some food, and some land.
19 The king liked Hadad so much he gave Hadad a wife—the sister of Tahpenes, the king’s wife.
20 They had a son named Genubath. Queen Tahpenes brought him up in the royal palace with the king’s own children.
21 While he was in Egypt, Hadad heard that David had died and that Joab, the commander of the army, was dead also. So Hadad said to the king, “Let me go; I will return to my own country.”
22 “Why do you want to go back to your own country?” the king asked. “What haven’t I given you here?”“Nothing,” Hadad answered, “but please, let me go.”