"with Him. Each conflict has its place in the great battle for righteousness, and each will add to the joy of their final triumph. Having this in view, the test of their faith and patience will be cheerfully accepted rather than dreaded and avoided. Anxious to fulfill their obligation to the world, fixing their desire upon the approval of God, His servants are to fulfill every duty, irrespective of the fear or the favor of men. DA 306.2"
"For I reckon that the sufferings of this present time are not worthy to be compared with the glory which shall be revealed in us."
Both passages address the idea that present suffering is worth enduring for the sake of future glory or reward. The EGW passage speaks of conflicts adding to the joy of final triumph, while Romans 8:18 states that present sufferings are not worthy to be compared with future glory. The connection is thematic.
"“Ye are the salt of the earth,” Jesus said. Do not withdraw yourselves from the world in order to escape persecution. You are to abide among men, that the savor of the divine love may be as salt to preserve the world from corruption. DA 306.3"
"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."
EGW directly quotes and expands upon the meaning of Matthew 5:13.