Matthew 2:13-15 NRSV
13" Now after they had left, an angel of the Lord appeared to Joseph in a dream and said, “Get up, take the child and his mother, and flee to Egypt, and remain there until I tell you; for Herod is about to search for the child, to destroy him.”
14 Then Joseph[h] got up, took the child and his mother by night, and went to Egypt,
15 and remained there until the death of Herod. This was to fulfill what had been spoken by the Lord through the prophet, “Out of Egypt I have called my son.”
Jesus family was a poor family. Why I say this? According to the Law poor families could for their sacrificial offering give,“a pair of turtledoves or two young pigeons.” Leviticus 5:5-7
Luke 2:22-24 (NRSV)
22 "When the time came for their purification according to the law of Moses, they brought him up to Jerusalem to present him to the Lord."
23" (as it is written in the law of the Lord, “Every firstborn male shall be designated as holy to the Lord”),
24 and they offered a sacrifice according to what is stated in the law of the Lord, “a pair of turtledoves or two young pigeons.”
I estimate that this is a journey of approximately 700Km (About 420 miles) overland.
So,Where did Jesus family find the money to make the long journey to Egypt?