"Hope Renewed Our hopes now centered on the coming of the Lord in 1844. This was also the time for the message of the second angel, who, flying through the midst of heaven, cried, “Babylon is fallen, is fallen, that great city.” Revelation 14:8 . That message was first proclaimed by the servants of God in the summer of 1844. As a result, many left the fallen churches. In connection with this message the “midnight cry” [See Matthew 25:1-13 .] was given: “Behold, the Bridegroom cometh; go ye out to meet Him.” In every part of the land light was given concerning this message, and the cry aroused thousands. It went from city to city, from village to village, and into the remote country regions. It reached the learned and talented, as well as the obscure and humble. LS 59"
"And at midnight there was a cry made, Behold, the bridegroom cometh; go ye out to meet him."
EGW directly quotes Matthew 25:6 in her description of the 'midnight cry' message.
"And there followed another angel, saying, Babylon is fallen, is fallen, that great city, because she made all nations drink of the wine of the wrath of her fornication."
Ellen White directly references Revelation 14:8 in this passage.
"Then shall the kingdom of heaven be likened unto ten virgins, which took their lamps, and went forth to meet the bridegroom. And five of them were wise, and five were foolish. They that were foolish took their lamps, and took no oil with them: But the wise took oil in their vessels with their lamps. While the bridegroom tarried, they all slumbered and slept. And at midnight there was a cry made, Behold, the bridegroom cometh; go ye out to meet him. Then all those virgins arose, and trimmed their lamps. And the foolish said unto the wise, Give us of your oil; for our lamps are gone out. But the wise answered, saying, Not so; lest there be not enough for us and you: but go ye rather to them that sell, and buy for yourselves. And while they went to buy, the bridegroom came; and they that were ready went in with him to the marriage: and the door was shut. Afterward came also the other virgins, saying, Lord, Lord, open to us. But he answered and said, Verily I say unto you, I know you not. Watch therefore, for ye know neither the day nor the hour wherein the Son of man cometh."
Ellen White directly references Matthew 25:1-13 in this passage.
"This was the happiest year of my life. My heart was full of glad expectation; but I felt great pity and anxiety for those who were in discouragement and had no hope in Jesus. We united, as a people, in earnest prayer for a true experience and the unmistakable evidence of our acceptance with God. LS 59.2"
"And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us."
The EGW passage mentions feeling pity for those without hope in Jesus, while Romans 5:5 speaks of hope not being disappointing because of God's love. The connection lies in the contrast between having hope in Jesus and lacking it, and the source of that hope.