15 For when David was in Idumea, Joab, the leader of the military, had ascended to bury those who had been killed, and he had killed every male in Idumea.
16 And Joab remained in that place for six months, with all of Israel, until he had put to death every male in Idumea.
17 Then Hadad fled, he and some men of Idumea from among the servants of his father with him, so that he might enter into Egypt. But Hadad was then a little boy.
18 And when they had risen up from Midian, they went into Paran, and they took with them some men from Paran. And they went into Egypt, to Pharaoh, the king of Egypt. And he gave him a house, and he appointed food for him, and he assigned land to him.
19 And Hadad found great favor before Pharaoh, so much so that he gave to him as wife, the sister of his own wife, queen Tahpenes.
20 And the sister of Tahpenes bore to him a son, Genubath. And Tahpenes raised him in the house of Pharaoh. And Genubath was living with Pharaoh and his sons.
21 And when Hadad had heard in Egypt that David had slept with his fathers, and that Joab, the leader of the military, had died, he said to Pharaoh, "Release me, so that I may go to my own land."