"but the world shall rejoice: and ye shall be sorrowful, but your sorrow shall be turned into joy.” John 16:19, 20 . DA 277.3"
"Verily, verily, I say unto you, That ye shall weep and lament, but the world shall rejoice: and ye shall be sorrowful, but your sorrow shall be turned into joy."
EGW directly quotes John 16:20.
"When He should come forth from the tomb, their sorrow would be turned to joy. After His ascension He was to be absent in person; but through the Comforter He would still be with them, and they were not to spend their time in mourning. This was what Satan wanted. He desired them to give the world the impression that they had been deceived and disappointed; but by faith they were to look to the sanctuary above, where Jesus was ministering for them; they were to open their hearts to the Holy Spirit, His representative, and to rejoice in the light of His presence. Yet days of temptation and trial would come, when they would be brought into conflict with the rulers of this world, and the leaders of the kingdom of darkness; when Christ was not personally with them, and they failed to discern the Comforter, then it would be more fitting for them to fast. DA 277.4"
"But the Comforter, which is the Holy Ghost, whom the Father will send in my name, he shall teach you all things, and bring all things to your remembrance, whatsoever I have said unto you."
Both passages discuss the role of the Comforter (Holy Spirit) after Jesus' departure. EGW expands on the implications of the Comforter's presence, drawing a thematic parallel with John 14:26.
"And ye now therefore have sorrow: but I will see you again, and your heart shall rejoice, and your joy no man taketh from you."
Both passages discuss sorrow turning to joy after Jesus' departure and eventual return. EGW elaborates on this theme in the context of the disciples' experience and the role of the Holy Spirit.