14 Then the Lord raised up an adversary against Solomon, Hadad the Edomite; he was of the royal house in Edom. 15 For when David was in Edom, and Joab the commander of the army went up to bury the dead, he killed every male in Edom 16 (for Joab and all Israel remained there six months, until he had eliminated every male in Edom); 17 but Hadad fled to Egypt with some Edomites who were servants of his father. He was a young boy at that time. 18 They set out from Midian and came to Paran; they took people with them from Paran and came to Egypt, to Pharaoh king of Egypt, who gave him a house, assigned him an allowance of food, and gave him land. 19 Hadad found great favor in the sight of Pharaoh, so that he gave him his sister-in-law for a wife, the sister of Queen Tahpenes. 20 The sister of Tahpenes gave birth by him to his son Genubath, whom Tahpenes weaned in Pharaoh's house; Genubath was in Pharaoh's house among the children of Pharaoh. 21 When Hadad heard in Egypt that David slept with his ancestors 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." 22 But Pharaoh said to him, "What do you lack with me that you now seek to go to your own country?" And he said, "No, do let me go."

Matthew Henry's Commentary on 1 Kings 11:14-22

Commentary on 1 Kings 11:14-25

(Read 1 Kings 11:14-25)

While Solomon kept close to God and to his duty, there was no enemy to give him uneasiness; but here we have an account of two. If against us, he can make us fear even the least, and the very grasshopper shall be a burden. Though they were moved by principles of ambition or revenge, God used them to correct Solomon.