For it was so, when Solomon was old, that his wives turned his heart after other gods; and his heart was not loyal to the LORD his God, as was the heart of his father David. For Solomon went after Ashtoreth the goddess of the Sidonians, and after Milcom the abomination of the Ammonites. Solomon did evil in the sight of the LORD, and did not fully follow the LORD, as did his father David. Then Solomon built a high place for Chemosh the abomination of Moab, on the hill that is east of Jerusalem, and for Molech the abomination of the people of Ammon. And he did likewise for all his foreign wives, who burned incense and sacrificed to their gods.
So the LORD became angry with Solomon, because his heart had turned from the LORD God of Israel, who had appeared to him twice, and had commanded him concerning this thing, that he should not go after other gods; but he did not keep what the LORD had commanded. Therefore the LORD said to Solomon, “Because you have done this, and have not kept My covenant and My statutes, which I have commanded you, I will surely tear the kingdom away from you and give it to your servant. Nevertheless I will not do it in your days, for the sake of your father David; I will tear it out of the hand of your son. However I will not tear away the whole kingdom; I will give one tribe to your son for the sake of My servant David, and for the sake of Jerusalem which I have chosen.”
Now the LORD raised up an adversary against Solomon, Hadad the Edomite; he was a descendant of the king in Edom. For it happened, when David was in Edom, and Joab the commander of the army had gone up to bury the slain, after he had killed every male in Edom (because for six months Joab remained there with all Israel, until he had cut down every male in Edom), that Hadad fled to go to Egypt, he and certain Edomites of his father’s servants with him. Hadad was still a little child. Then they arose from Midian and came to Paran; and they took men with them from Paran and came to Egypt, to Pharaoh king of Egypt, who gave him a house, apportioned food for him, and gave him land. And Hadad found great favor in the sight of Pharaoh, so that he gave him as wife the sister of his own wife, that is, the sister of Queen Tahpenes.