"But while men were cruel and vindictive, or criminally negligent of the solemn responsibilities devolving upon them, God had not forgotten to be gracious to His servants. All heaven was interested in the men who were suffering for Christ's sake, and angels were sent to visit the prison. At their tread the earth trembled. The heavily bolted prison doors were thrown open; the chains and fetters fell from the hands and feet of the prisoners; and a bright light flooded the prison. AA 215.1"
"And suddenly there was a great earthquake, so that the foundations of the prison were shaken: and immediately all the doors were opened, and every one’s bands were loosed."
The EGW passage directly recounts the event in Acts 16:26, including the earthquake, opening of prison doors, and loosening of chains. The details are too specific to be coincidental.
"And, behold, the angel of the Lord came upon him, and a light shined in the prison: and he smote Peter on the side, and raised him up, saying, Arise up quickly. And his chains fell off from his hands."
Both passages describe angels intervening in prison, with light and chains falling off. EGW's account is more embellished, but the core elements are present in Acts 12:7.
"The angel of the Lord encampeth round about them that fear him, and delivereth them."
EGW's statement that God is gracious to his servants and sends angels to help them aligns with the general principle expressed in Psalm 34:7, which speaks of the angel of the Lord delivering those who fear him.
"The keeper of the jail had heard with amazement the prayers and songs of the imprisoned apostles. When they were led in, he had seen their swollen and bleeding wounds, and had himself caused their feet to be fastened in the stocks. He had expected to hear from them bitter groans and imprecations, but he heard instead songs of joy and praise. With these sounds in his ears the jailer had fallen into a sleep from which he was awakened by the earthquake and the shaking of the prison walls. AA 215.2"
"And at midnight Paul and Silas prayed, and sang praises unto God: and the prisoners heard them."
Both passages describe Paul and Silas singing praises in prison, which the other prisoners heard. EGW adds details, but the core event is the same.
"Starting up in alarm, he saw with dismay that all the prison doors were open, and the fear flashed upon him that the prisoners had escaped. He remembered with what explicit charge Paul and Silas had been entrusted to his care the night before, and he was certain that death would be the penalty of his apparent unfaithfulness. In the bitterness of his spirit he felt that it was better for him to die by his own hand than to submit to a disgraceful execution. Drawing his sword, he was about to kill himself, when Paul's voice was heard in the words of cheer, “Do thyself no harm: for we are all here.” Every man was in his place, restrained by the power of God exerted through one fellow prisoner. AA 215.3"
"And the keeper of the prison awaking out of his sleep, and seeing the prison doors open, he drew out his sword, and would have killed himself, supposing that the prisoners had been fled."
This is a clear and direct allusion to Acts 16:27. The jailer drawing his sword and Paul's words 'Do thyself no harm' are directly referenced.
"But Paul cried with a loud voice, saying, Do thyself no harm: for we are all here."
The EGW passage directly quotes Acts 16:28.