Although he had forbidden Solomon to follow other gods, Solomon did not keep the LORD’s command.
So the LORD said to Solomon, “Since this is your attitude and you have not kept my covenant and my decrees, which I commanded you, I will most certainly tear the kingdom away from you and give it to one of your subordinates.
Nevertheless, for the sake of David your father, I will not do it during your lifetime. I will tear it out of the hand of your son.
Yet I will not tear the whole kingdom from him, but will give him one tribe for the sake of David my servant and for the sake of Jerusalem, which I have chosen.”
Then the LORD raised up against Solomon an adversary, Hadad the Edomite, from the royal line of Edom.
Earlier when David was fighting with Edom, Joab the commander of the army, who had gone up to bury the dead, had struck down all the men in Edom.
Joab and all the Israelites stayed there for six months, until they had destroyed all the men in Edom.
But Hadad, still only a boy, fled to Egypt with some Edomite officials who had served his father.
They set out from Midian and went to Paran. Then taking people from Paran with them, they went to Egypt, to Pharaoh king of Egypt, who gave Hadad a house and land and provided him with food.
Pharaoh was so pleased with Hadad that he gave him a sister of his own wife, Queen Tahpenes, in marriage.
The sister of Tahpenes bore him a son named Genubath, whom Tahpenes brought up in the royal palace. There Genubath lived with Pharaoh’s own children.