"As many as I love, I rebuke and chasten: be zealous therefore, and repent."
The EGW passage directly quotes a portion of Revelation 3:19, making it a clear and explicit allusion.
"I would call especial attention to the remarkable dreams given in this little work, all with harmony and distinctness illustrating the same things. The multitude of dreams arise from the common things of life, with which the Spirit of God has nothing to do. There are also false dreams, as well as false visions, which are inspired by the spirit of Satan. But dreams from the Lord are classed in the word of God with visions and are as truly the fruits of the spirit of prophecy as visions. Such dreams, taking into the account the persons who have them and the circumstances under which they are given, contain their own proofs of their genuineness. 1T 569.2"
"And it shall come to pass afterward, that I will pour out my spirit upon all flesh; and your sons and your daughters shall prophesy, your old men shall dream dreams, your young men shall see visions:"
EGW directly refers to dreams from the Lord being classed with visions in the word of God, and then directly references the Spirit of Prophecy. Joel 2:28 is a key verse about prophecy and dreams.
"I have heard what the prophets said, that prophesy lies in my name, saying, I have dreamed, I have dreamed."
Both passages address the topic of false dreams and prophecies. EGW mentions false dreams inspired by Satan, while Jeremiah 23:25 speaks of prophets who prophesy lies and claim to have dreamed.