The mother of Jesus was there. Her heart was pierced with anguish such as none but a fond mother can feel; yet, with the disciples, she still hoped that Christ would work some mighty miracle and deliver Himself from His murderers. She could not endure the thought that He would suffer Himself to be crucified. But the preparations were made, and Jesus was laid upon the cross. The hammer and the nails were brought. The hearts of the disciples fainted within them. The mother of Jesus was bowed with agony almost beyond endurance. Before the Saviour was nailed to the cross, the disciples bore her from the scene, that she might not hear the crashing of the spikes as they were driven through the bone and muscle of His tender hands and feet. Jesus murmured not, but groaned in agony. His face was pale, and large drops of sweat stood upon His brow. Satan exulted in the suffering through which the Son of God was passing, yet feared that his efforts to thwart the plan of salvation had been in vain,…
"Now there stood by the cross of Jesus his mother, and his mother’s sister, Mary the wife of Cleophas, and Mary Magdalene."
Both passages mention Jesus' mother being present at the crucifixion. While John 19:25 simply states her presence, EGW elaborates on her emotional state, creating a thematic parallel.
"After Jesus had been nailed to the cross, it was raised and with great force thrust into the place which had been prepared for it in the ground, tearing the flesh and causing the most intense suffering. To make the death of Jesus as shameful as possible, two thieves were crucified with Him, one on each side. The thieves were taken by force, and after much resistance on their part, their arms were thrust back and nailed to their crosses. But Jesus meekly submitted. He needed no one to force His arms back upon the cross. While the thieves were cursing their executioners, the Saviour in agony prayed for His enemies, “Father, forgive them; for they know not what they do.” It was not merely agony of body which Christ endured; the sins of the whole world were upon Him. EW 176.2"
"Then said Jesus, Father, forgive them; for they know not what they do. And they parted his raiment, and cast lots."
EGW directly quotes Jesus' prayer from the cross, "Father, forgive them; for they know not what they do," which is found in Luke 23:34.
"And when they were come to the place, which is called Calvary, there they crucified him, and the malefactors, one on the right hand, and the other on the left."
Both passages describe the crucifixion of Jesus alongside two thieves, one on each side, explicitly alluding to the same event.