1 Kings 11:13-19
English Standard Version
14And the Lord raised up an adversary against Solomon, Hadad the Edomite. He was of the royal house in Edom.
15For 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
16(for Joab and all Israel remained there six months, until he had cut off every male in Edom).
17But Hadad fled to Egypt, together with certain Edomites of his father 's servants, Hadad still being a little child.
18They 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.
19And 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.