"In 1846, while at Fairhaven, Massachusetts, my sister (who usually accompanied me at that time), Sister A., Brother G., and myself started in a sailboat to visit a family on West's Island. It was almost night when we started. We had gone but a short distance when a storm suddenly arose. It thundered and lightened, and the rain came in torrents upon us. It seemed plain that we must be lost, unless God should deliver. EW 23.1"
"Then they cry unto the Lord in their trouble, and he bringeth them out of their distresses."
Both passages involve people in distress crying out to God for deliverance during a storm. The EGW passage describes a specific instance, while the Psalm is a general statement of God's response to such cries.
I knelt down in the boat and began to cry to God to deliver us. And there upon the tossing billows, while the water washed over the top of the boat upon us, I was taken off in vision and saw that sooner would every drop of water in the ocean be dried up than we perish, for my work had but just begun. After I came out of the vision all my fears were gone, and we sang and praised God, and our little boat was to us a floating Bethel. The editor of The Advent Herald has said that my visions were known to be “the result of mesmeric operations.” But, I ask, what opportunity was there for mesmeric operations in such a time as that? Brother G. had more than he could well do to manage the boat. He tried to anchor, but the anchor dragged. Our little boat was tossed upon the waves and driven by the wind, while it was so dark that we could not see from one end of the boat to the other. Soon the anchor held, and Brother G. called for help. There were but two houses on the island, and it proved that…
"But when he saw the wind boisterous, he was afraid; and beginning to sink, he cried, saying, Lord, save me."
Both passages describe a situation where individuals are in danger on the water and cry out to God for help. Peter's fear and cry for salvation in Matthew 14:30 parallels Ellen White's initial fear and prayer for deliverance during the storm.