“But when he heard that Archelaus did reigne in Iudea in the roome of his father Herod, hee was afraid to goe thither: notwithstanding, beeing warned of God in a dreame, he turned aside into the parts of Galilee:”
1611 King James Version (KJV)
2:22 He was afraid to go thither - into Judea; and so turned aside into the region of Galilee - a part of the land of Israel not under the jurisdiction of Archelaus.
Mt 2:22 When he heard that Archelaus did reign in Judea. Archelaus is one of the four sons of Herod, who are named in the New Testament. See PNT "Mt 2:1". He was afraid to go thither. This implies that he had designed to return thither.