Jesus was about 2 years old. The wise men came from Persia following a heavenly star. The star they saw was the alignment of 5 planets. They came into Israel and went to king Herod to find out about the child they called king of Israel. Herod pretended to be interested. But he found out where Jesus was and sent the wise men on their way. He told them to come back and tell him where exactly this king was. The wise men went to Bethlehem and found Jesus. They gave him gifts of gold, for a king, frankincense, to burn to a God, and myrrh, to embalm a person. The wise men were warned by God not to go back to Herod. They went home another way. God warned Joseph to go to Egypt because Herod wanted to kill Jesus. Joseph and Mary left at night to go to Egypt. They stayed there until Herod was dead. In the meantime, Herod sent his army into Bethlehem and killed all the children up to 2 years old. To fulfill the scripture that says for out of Egypt I called my son. Matt.2, Luke 2, Hosea 11.