1 Kings 11:9-24 ESV
And the LORD was angry with Solomon, because his heart had turned away from the LORD, the 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 commanded. Therefore the LORD said to Solomon, “Since this has been your practice and you have not kept my covenant and my statutes that I have commanded you, I will surely tear the kingdom from you and will give it to your servant. Yet for the sake of David your father I will not do it in your days, but I will tear it out of the hand of your son. However, I will not tear away all the kingdom, but I will give one tribe to your son, for the sake of David my servant and for the sake of Jerusalem that I have chosen.”
And the LORD raised up an adversary against Solomon, Hadad the Edomite. He was of the royal house in Edom. For when David was in Edom, and Joab the commander of the army went up to bury the slain, he struck down every male in Edom (for Joab and all Israel remained there six months, until he had cut off every male in Edom). But Hadad fled to Egypt, together with certain Edomites of his father’s servants, Hadad still being a little child. They set out from Midian and came to Paran and took men with them from Paran and came to Egypt, to Pharaoh king of Egypt, who gave him a house and assigned him an allowance of food and gave him land. And Hadad found great favor in the sight of Pharaoh, so that he gave him in marriage the sister of his own wife, the sister of Tahpenes the queen. And the sister of Tahpenes bore him Genubath his son, whom Tahpenes weaned in Pharaoh’s house. And Genubath was in Pharaoh’s house among the sons of Pharaoh. But when Hadad heard in Egypt that David slept with his fathers and that Joab the commander of the army was dead, Hadad said to Pharaoh, “Let me depart, that I may go to my own country.” But Pharaoh said to him, “What have you lacked with me that you are now seeking to go to your own country?” And he said to him, “Only let me depart.”
God also raised up as an adversary to him, Rezon the son of Eliada, who had fled from his master Hadadezer king of Zobah. And he gathered men about him and became leader of a marauding band, after the killing by David. And they went to Damascus and lived there and made him king in Damascus.
ESV: English Standard Version 2016