I searched for this before but was not able to find anything on it on this site:
Matthew 2: 13-15
When they had gone, an angel of the Lord appeared to Joseph in a dream. “Get up,” he said, “take the child and his mother and escape to Egypt. Stay there until I tell you, for Herod is going to search for the child to kill him.” So he got up, took the child and his mother during the night and left for Egypt, where he stayed until the death of Herod. And so was fulfilled what the Lord had said through the prophet: “Out of Egypt I called my son.”[a]
11:1 When Israel was a child, I loved him,
and out of Egypt I called my son.
“Matthew (2:15) claims that the flight of Jesus’ family to Egypt is a fulfillment of this verse. But Hosea 11:1 is not a prophecy at all. It is a reference to the Hebrew exodus from Egypt and has nothing to do with Jesus.”