In great distress I awoke. I went to sleep again, and I seemed to be in a large gathering. One of authority was addressing the company, before whom was spread out a map of the world. He said that the map pictured God's vineyard, which must be cultivated. As light from heaven shone upon anyone, that one was to reflect the light to others. Lights were to be kindled in many places, and from these lights still other lights were to be kindled. 9T 28.2 The words were repeated: “Ye are the salt of the earth: but if the salt have lost his savor, wherewith shall it be salted? it is thenceforth good for nothing, but to be cast out, and to be trodden underfoot of men. Ye are the light of the world. A city that is set on an hill cannot be hid. Neither do men light a candle, and put it under a bushel, but on a candlestick; and it giveth light unto all that are in the house. Let your light so shine before men, that they may see your good works, and glorify your Father which is in heaven.” Matthew 5:…
"Ye are the light of the world. A city that is set on an hill cannot be hid."
The EGW passage directly quotes Matthew 5:13-16, making the connection explicit and undeniable.
"Ye are the salt of the earth: but if the salt have lost his savour, wherewith shall it be salted? it is thenceforth good for nothing, but to be cast out, and to be trodden under foot of men. Ye are the light of the world. A city that is set on an hill cannot be hid. Neither do men light a candle, and put it under a bushel, but on a candlestick; and it giveth light unto all that are in the house. Let your light so shine before men, that they may see your good works, and glorify your Father which is in heaven."
Ellen White directly references Matthew 5:13-16 in this passage.
"I saw jets of light shining from cities and villages, and from the high places and the low places of the earth. God's word was obeyed, and as a result there were memorials for Him in every city and village. His truth was proclaimed throughout the world. 9T 28.4"
"But ye shall receive power, after that the Holy Ghost is come upon you: and ye shall be witnesses unto me both in Jerusalem, and in all Judea, and in Samaria, and unto the uttermost part of the earth."
The EGW passage describes the spread of God's word throughout the world, mirroring the commission in Acts 1:8 to be witnesses in Jerusalem, Judea, Samaria, and to the ends of the earth.