In Solomon’s old age, they turned his heart to worship other gods instead of being completely faithful to the LORD his God, as his father, David, had been. Solomon worshiped Ashtoreth, the goddess of the Sidonians, and Molech, the detestable god of the Ammonites. In this way, Solomon did what was evil in the LORD’s sight; he refused to follow the LORD completely, as his father, David, had done.
On the Mount of Olives, east of Jerusalem, he even built a pagan shrine for Chemosh, the detestable god of Moab, and another for Molech, the detestable god of the Ammonites. Solomon built such shrines for all his foreign wives to use for burning incense and sacrificing to their gods.
The LORD was very angry with Solomon, for his heart had turned away from the LORD, the God of Israel, who had appeared to him twice. He had warned Solomon specifically about worshiping other gods, but Solomon did not listen to the LORD’s command. So now the LORD said to him, “Since you have not kept my covenant and have disobeyed my decrees, I will surely tear the kingdom away from you and give it to one of your servants. But for the sake of your father, David, I will not do this while you are still alive. I will take the kingdom away from your son. And even so, I will not take away the entire kingdom; I will let him be king of one tribe, for the sake of my servant David and for the sake of Jerusalem, my chosen city.”
Then the LORD raised up Hadad the Edomite, a member of Edom’s royal family, to be Solomon’s adversary. Years before, David had defeated Edom. Joab, his army commander, had stayed to bury some of the Israelite soldiers who had died in battle. While there, they killed every male in Edom. Joab and the army of Israel had stayed there for six months, killing them.
But Hadad and a few of his father’s royal officials escaped and headed for Egypt. (Hadad was just a boy at the time.) They set out from Midian and went to Paran, where others joined them. Then they traveled to Egypt and went to Pharaoh, who gave them a home, food, and some land. Pharaoh grew very fond of Hadad, and he gave him his wife’s sister in marriage—the sister of Queen Tahpenes.