Jesus left Bethlehem to escape to Egypt
Jesus escaped to Egypt from Bethlehem, not Nazareth. King Herod, who wanted to kill him, ordered the massacre of all infant boys in Bethlehem, prompting Joseph and Mary to flee to Egypt with Jesus to keep him safe.
Mary and Joseph lived in Nazareth before Jesus was born. Following Jesus' birth, they fled to Egypt to escape King Herod's order to kill all male infants in Bethlehem. They later resettled in Nazareth after returning from Egypt.
Mary , Joseph and the baby Jesus fled in the night to Egypt.
Egypt was a safer place for Mary and Joseph than Bethlehem because Egypt was out of the jurisdiction of King Herod, who was seeking to kill the infant Jesus. By fleeing to Egypt, Mary and Joseph were able to escape Herod's massacre in Bethlehem targeting male infants.
Joseph and Mary faced challenges such as the stigma surrounding Mary's pregnancy out of wedlock, the difficult journey to Bethlehem for the census while Mary was pregnant, finding a place to stay for the birth of Jesus, and fleeing to Egypt to escape King Herod's order to kill all male babies.
Possibly in his 40's-50's, the Bible does not say, but Jewish extra-biblical sources say he was an older man (not aged) and Jesus had brothers and sisters, so he can't have been too old to father children.
He traveled from Nazareth to Bethlehem with Mary, where Jesus was born. From Bethlehem he took his family to Egypt. From Egypt they returned to Nazareth.
For a while Jesus and his parents had to live in Egypt to escape the Roman ruler who ordered that Jewish boy babies age two and over be killed. When the threat ended they went back to their home town of Nazareth.
Mary and Joseph lived in Nazareth before Jesus was born. Following Jesus' birth, they fled to Egypt to escape King Herod's order to kill all male infants in Bethlehem. They later resettled in Nazareth after returning from Egypt.
Bethlehem, Egypt, and Nazareth.
When Jesus, Mary and Joseph returned from their exile in Egypt they settled in the town of Nazareth. Jesus spent almost his entire life there until he began his public ministry about the age of 30.
Jesus was originally born in Bethlehem, and then moved to Egypt to escape Herod. However Jesus spent the majority of his life in Nazareth thus he is referred to as: Jesus of Nazareth.
They fled to Egypt to escape the murder of the boy children of Bethlehem by Herod. After King Herod died, they went to Nazareth to live because they came from Nazareth in the first place. Luke 2, Matthew 2.
First Joseph and Mary went to Bethlehem to be taxed, during which visit Jesus was born; then the family fled to Egypt to escape the infanticide of Herod; then they came back to Nazareth, Joseph's home. When Jesus was older they also went to Jerusalem to celebrate the Passover.
Jesus was born in Bethlehem, about six miles from Jerusalem, in Israel. After his birth, he lived there for up to a year. He lived for a short time (a few months to a couple years) somewhere in Egypt after that, then went to Nazareth in Galilee (northern Israel) where he spent most of his childhood. He lived there until he began his ministry, around the age of 30.
Mary , Joseph and the baby Jesus fled in the night to Egypt.
Bethlehem
We do not know the amount of time Joseph traveled. However, we know that he and Mary traveled from Nazareth to Bethlehem, where Jesus was born. He and the family made a quick escape to Egypt and a few years later returned from there to Nazareth.