14 Now the Lord raised up an adversary against Solomon, Hadad the Edomite; he was a descendant of the king in Edom. 15 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 16 (because for six months Joab remained there with all Israel, until he had cut down every male in Edom), 17 that Hadad fled to go to Egypt, he and certain Edomites of his father's servants with him. Hadad was still a little child. 18 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. 19 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. 20 Then the sister of Tahpenes bore him Genubath his son, whom Tahpenes weaned in Pharaoh's house. And Genubath was in Pharaoh's household among the sons of Pharaoh. 21 So when Hadad heard in Egypt that David rested 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." 22 Then Pharaoh said to him, "But what have you lacked with me, that suddenly you seek to go to your own country?" So he answered, "Nothing, but do let me go anyway."

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.