"This act of cruelty was one of the last that darkened the reign of Herod. Soon after the slaughter of the innocents, he was himself compelled to yield to that doom which none can turn aside. He died a fearful death. DA 66.1"
"Then Herod, when he saw that he was mocked of the wise men, was exceeding wroth, and sent forth, and slew all the children that were in Bethlehem, and in all the coasts thereof, from two years old and under, according to the time which he had diligently enquired of the wise men."
Both passages discuss Herod's slaughter of the innocents and his subsequent demise. The EGW passage directly references the event and elaborates on its significance as one of Herod's last cruel acts before his death.
"Joseph, who was still in Egypt, was now bidden by an angel of God to return to the land of Israel. Regarding Jesus as the heir of David's throne, Joseph desired to make his home in Bethlehem; but learning that Archelaus reigned in Judea in his father's stead, he feared that the father's designs against Christ might be carried out by the son. Of all the sons of Herod, Archelaus most resembled him in character. Already his succession to the government had been marked by a tumult in Jerusalem, and the slaughter of thousands of Jews by the Roman guards. DA 66.2"
"But when he heard that Archelaus did reign in Judea in the room of his father Herod, he was afraid to go thither: notwithstanding, being warned of God in a dream, he turned aside into the parts of Galilee:"
The EGW passage directly recounts the biblical narrative from Matthew 2:22 about Joseph's fear of Archelaus and his decision to go to Galilee. It's a clear and direct reference.
"Again Joseph was directed to a place of safety. He returned to Nazareth, his former home, and here for nearly thirty years Jesus dwelt, “that it might be fulfilled which was spoken by the prophets, He shall be called a Nazarene.” Galilee was under the control of a son of Herod, but it had a much larger admixture of foreign inhabitants than Judea. Thus there was less interest in matters relating especially to the Jews, and the claims of Jesus would be less likely to excite the jealousy of those in power. DA 66.3"
"And he came and dwelt in a city called Nazareth: that it might be fulfilled which was spoken by the prophets, He shall be called a Nazarene."
This is a direct reference to Matthew 2:23, including the specific phrase 'He shall be called a Nazarene.'