"In the reformation that followed, the king turned his attention to the destruction of every vestige of idolatry that remained. So long had the inhabitants of the land followed the customs of the surrounding nations in bowing down to images of wood and stone, that it seemed almost beyond the power of man to remove every trace of these evils. But Josiah persevered in his effort to cleanse the land. Sternly he met idolatry by slaying “all the priests of the high places;” “moreover the workers with familiar spirits, and the wizards, and the images, and the idols, and all the abominations that were spied in the land of Judah and in Jerusalem, did Josiah put away, that he might perform the words of the law which were written in the book that Hilkiah the priest found in the house of the Lord.” Verses 20, 24 . PK 401.1"
"And he slew all the priests of the high places that were there upon the altars, and burned men’s bones upon them, and returned to Jerusalem."
EGW directly references 2 Kings 23:20 in the passage.
"But thus shall ye deal with them; ye shall destroy their altars, and break down their images, and cut down their groves, and burn their graven images with fire."
Both passages discuss the destruction of idolatrous objects. While EGW doesn't directly quote Deuteronomy 7:5, the theme of destroying idols is present in both.
"In the days of the rending of the kingdom, centuries before, when Jeroboam the son of Nebat, in bold defiance of the God whom Israel had served, was endeavoring to turn the hearts of the people away from the services of the temple in Jerusalem to new forms of worship, he had set up an unconsecrated altar at Bethel. During the dedication of this altar, where many in years to come were to be seduced into idolatrous practices, there had suddenly appeared a man of God from Judea, with words of condemnation for the sacrilegious proceedings. He had “cried against the altar,” declaring: PK 401.2"
"And, behold, there came a man of God out of Judah by the word of the Lord unto Beth–el: and Jeroboam stood by the altar to burn incense. And he cried against the altar in the word of the Lord, and said, O altar, altar, thus saith the Lord; Behold, a child shall be born unto the house of David, Josiah by name; and upon thee shall he offer the priests of the high places that burn incense upon thee, and men’s bones shall be burnt upon thee."
EGW refers to the man of God crying against the altar, which is a direct reference to 1 Kings 13:1-2.
"And he made an house of high places, and made priests of the lowest of the people, which were not of the sons of Levi."
Both passages discuss Jeroboam's actions, but the specific verse is about making priests, while the EGW passage is about setting up an altar. The connection is thematic, relating to Jeroboam's idolatry.