1 Kings - Chapter 11

We read in this chapter that Solomon is led away from God by his many wives.  Then God responds:

"Now the Lord raised up an adversary against Solomon, Hadad the Edomite; he was a descendant of the king in Edom."

A royal Edomite is introduced as an adversary for the King of the Israelites appointed by God.

This situation is replicated in the story of Jesus's birth.  Jesus is the rightful King of the Israelites, a descendant of David and Solomon, appointed by God.  And his adversary as a baby is the King Herod, an Edomite placed on the throne by the Romans - royal, but not appointed by God.

"Now when they had departed, behold, an angel of the Lord appeared to Joseph in a dream, saying, “Arise, take the young Child and His mother, flee to Egypt, and stay there until I bring you word; for Herod will seek the young Child to destroy Him.”"