Awed by these revelations, Balaam exclaimed, “Surely there is no enchantment against Jacob, neither is there any divination against Israel.” The great magician had tried his power of enchantment, in accordance with the desire of the Moabites; but concerning this very occasion it should be said of Israel, “What hath God wrought!” While they were under the divine protection, no people or nation, though aided by all the power of Satan, should be able to prevail against them. All the world should wonder at the marvelous work of God in behalf of His people—that a man determined to pursue a sinful course should be so controlled by divine power as to utter, instead of imprecations, the richest and most precious promises, in the language of sublime and impassioned poetry. And the favor of God at this time manifested toward Israel was to be an assurance of His protecting care for His obedient, faithful children in all ages. When Satan should inspire evil men to misrepresent, harass, and destroy…
"Surely there is no enchantment against Jacob, neither is there any divination against Israel: according to this time it shall be said of Jacob and of Israel, What hath God wrought!"
EGW quotes Numbers 23:23 directly.
"The king of Moab, disheartened and distressed, exclaimed, “Neither curse them at all, nor bless them at all.” Yet a faint hope still lingered in his heart, and he determined to make another trial. He now conducted Balaam to Mount Peor, where was a temple devoted to the licentious worship of Baal, their god. Here the same number of altars were erected as before, and the same number of sacrifices were offered; but Balaam went not alone, as at other times, to learn God's will. He made no pretense of sorcery, but standing beside the altars, he looked abroad upon the tents of Israel. Again the Spirit of God rested upon him, and the divine message came from his lips: PP 449.2"
"And Balak said unto Balaam, Come, I pray thee, I will bring thee unto another place; peradventure it will please God that thou mayest curse me them from thence."
The EGW passage describes Balak's continued attempts to get Balaam to curse Israel, which is directly related to Balak's statement in Numbers 23:27 about finding a place where God might allow Balaam to curse them. The EGW passage provides more detail and context to the event.
"And Balaam lifted up his eyes, and he saw Israel abiding in his tents according to their tribes; and the spirit of God came upon him."
The EGW passage describes Balaam looking upon the tents of Israel and the Spirit of God coming upon him, which is directly related to Numbers 24:2. The EGW passage provides more detail and context to the event.
"“How goodly are thy tents, O Jacob, And thy tabernacles, O Israel! As the valleys are they spread forth, as gardens by the river's side, As the trees of lignaloes which the Lord hath planted, and as cedar trees beside the waters. He shall pour the water out of his buckets, and his seed shall be in many waters, And his King shall be higher than Agag, and his kingdom shall be exalted.... He couched, he lay down as a lion, and as a great lion: who shall stir him up? Blessed is he that blesseth thee, and cursed is he that curseth thee.” PP 449.3"
"How goodly are thy tents, O Jacob, and thy tabernacles, O Israel! As the valleys are they spread forth, as gardens by the river’s side, as the trees of lign aloes which the Lord hath planted, and as cedar trees beside the waters. He shall pour the water out of his buckets, and his seed shall be in many waters, and his king shall be higher than Agag, and his kingdom shall be exalted. God brought him forth out of Egypt; he hath as it were the strength of an unicorn: he shall eat up the nations his enemies, and shall break their bones, and pierce them through with his arrows. He couched, he lay down as a lion, and as a great lion: who shall stir him up? Blessed is he that blesseth thee, and cursed is he that curseth thee."
EGW quotes Numbers 24:5-9 directly.