John Fesko explains a little about the historical and biblical background to this popular Christmas hymn (which, I might add, one might sing at home but not during a stated service but it’s an edifying study so…)
Biblical theology
Matthew 2 As the Remake of a Great Story
Martin Downes has a meditation on Matthew 2 and Jesus as the Israel of God.