“After they were gone, an angel of the Lord suddenly appeared to Joseph in a dream, saying, “Get up! Take the child and His mother, flee to Egypt, and stay there until I tell you. For Herod is about to search for the child to destroy Him.”
After Herod died, an angel of the Lord suddenly appeared in a dream to Joseph in Egypt, saying, “Get up! Take the child and His mother and go to the land of Israel, because those who sought the child’s life are dead.””
Matthew 2:13, 19-20 HCSB
Not a lot is said about Joseph, though we know that he was a good man. A righteous man. He was obviously well regarded by the Lord as he is visited repeatedly by angels with instruction as to what to do with regard to young Jesus’ safety.