After Herod died, Joseph had a dream while he was still in Egypt. In the dream an angel of the Lord appeared to him.