"The amazement of the assembled council of nations knew no bounds when Jeremiah, carrying the yoke of subjection about his neck, made known to them the will of God. But Hananiah, one of the false prophets against whom God had warned His people through Jeremiah, lifted up his voice in opposition to the prophecy declared. Wishing to gain the favor of the king and his court, he affirmed that God had given him words of encouragement for the Jews. Said he: “Within two full years will I bring again into this place all the vessels of the Lord's house, that Nebuchadnezzar king of Babylon took away from this place, and carried them to Babylon: and I will bring again to this place Jeconiah the son of Jehoiakim king of Judah, with all the captives of Judah, that went into Babylon, saith the Lord: for I will break the yoke of the king of Babylon.” 4T 170.1"
"Within two full years will I bring again into this place all the vessels of the Lord’s house, that Nebuchadnezzar king of Babylon took away from this place, and carried them to Babylon:"
The EGW passage directly quotes Jeremiah 28:3 regarding the false prophet Hananiah's claim about the return of the temple vessels.
"Jeremiah, in the presence of all the priests and the people, said that it was the earnest wish of his heart that God would so favor His people that the vessels of the Lord's house might be returned and the captives brought back from Babylon; but this could only be done on condition that the people repented and turned from their evil way to the obedience of God's law. Jeremiah loved his country and ardently wished that the desolation predicted might be averted by the humiliation of the people, but he knew the wish was vain. He hoped the punishment of Israel would be as light as possible, therefore he earnestly entreated them to submit to the king of Babylon for the time that the Lord specified. 4T 170.2"
"Thus saith the Lord of hosts, the God of Israel, Amend your ways and your doings, and I will cause you to dwell in this place."
Both passages emphasize the importance of repentance and obedience to God's law as a condition for restoration and blessing. While not a direct quote, the principle is clearly present in both.