"They were now to dwell at a distance from the sanctuary of the Lord, and it was with an anxious heart that Joshua witnessed their departure, knowing how strong would be the temptations, in their isolated and wandering life, to fall into the customs of the heathen tribes that dwelt upon their borders. PP 518.1"
"They shall not dwell in thy land, lest they make thee sin against me: for if thou serve their gods, it will surely be a snare unto thee."
Both passages address the danger of living near or interacting with those who worship other gods, and the potential for being led astray.
"While the minds of Joshua and other leaders were still oppressed with anxious forebodings, strange tidings reached them. Beside the Jordan, near the place of Israel's miraculous passage of the river, the two and a half tribes had erected a great altar, similar to the altar of burnt offering at Shiloh. The law of God prohibited, on pain of death, the establishment of another worship than that at the sanctuary. If such was the object of this altar, it would, if permitted to remain, lead the people away from the true faith. PP 518.2"
"But unto the place which the Lord your God shall choose out of all your tribes to put his name there, even unto his habitation shall ye seek, and thither thou shalt come:"
The EGW passage directly references the law against establishing another worship site besides the designated sanctuary, which is a principle found in Deuteronomy 12:5.
"The representatives of the people assembled at Shiloh, and in the heat of their excitement and indignation proposed to make war at once upon the offenders. Through the influence of the more cautious, however, it was decided to send first a delegation to obtain from the two and a half tribes an explanation of their conduct. Ten princes, one from each tribe, were chosen. At their head was Phinehas, who had distinguished himself by his zeal in the matter of Peor. PP 518.3"
"And when Phinehas, the son of Eleazar, the son of Aaron the priest, saw it, he rose up from among the congregation, and took a javelin in his hand; And he went after the man of Israel into the tent, and thrust both of them through, the man of Israel, and the woman through her belly. So the plague was stayed from the children of Israel. And those that died in the plague were twenty and four thousand. And the Lord spake unto Moses, saying, Phinehas, the son of Eleazar, the son of Aaron the priest, hath turned my wrath away from the children of Israel, while he was zealous for my sake among them, that I consumed not the children of Israel in my jealousy. Wherefore say, Behold, I give unto him my covenant of peace: And he shall have it, and his seed after him, even the covenant of an everlasting priesthood; because he was zealous for his God, and made an atonement for the children of Israel."
The EGW passage explicitly mentions Phinehas and his past actions, directly referencing the events described in Numbers 25:7-13.
"The two and a half tribes had been at fault in entering, without explanation, upon an act open to such grave suspicions. The ambassadors, taking it for granted that their brethren were guilty, met them with sharp rebuke. They accused them of rebelling against the Lord, and bade them remember how judgments had been visited upon Israel for joining themselves to Baalpeor. In behalf of all Israel, Phinehas stated to the children of Gad and Reuben that if they were unwilling to abide in that land without an altar for sacrifice, they would be welcome to a share in the possessions and privileges of their brethren on the other side. PP 518.4"
"And Israel joined himself unto Baal–peor: and the anger of the Lord was kindled against Israel."
The EGW passage directly references the Baalpeor incident as a historical example used in the rebuke, mirroring the Bible verse's account of Israel's involvement with Baalpeor.