Hosea 11:1 NIV
“When Israel was a child, I loved him,
and out of Egypt I called my son.
This “almost” Christmas verse is very important in the story of Jesus’ coming. This part of the story came after the Magi, after the escape to Egypt, and after several (possible six) years of living in Egypt. So, this would have been after the story of the Family in the Temple.
Hosea was a contemporary of Amos, Micah, and Isaiah; so, like their books the tone changes quickly to one of coming judgement in verse 2. The idea of Israel/child coming out of Egypt is also seen in 2:15 and 11:11