"It was indeed a formidable alliance. The inhabitants of the region lying between the river Euphrates and the Mediterranean Sea had leagued with the Ammonites. The north and east of Canaan was encircled with armed foes, banded together to crush the kingdom of Israel. PP 715.1"
"For they have consulted together with one consent: they are confederate against thee:"
Both passages describe a confederation of nations uniting against a common enemy. While the specifics differ, the underlying theme of a united front against God's people is present in both.
The Hebrews did not wait for the invasion of their country. Their forces, under Joab, crossed the Jordan and advanced toward the Ammonite capital. As the Hebrew captain led his army to the field he sought to inspire them for the conflict, saying, “Be of good courage, and let us behave ourselves valiantly for our people, and for the cities of our God: and let the Lord do that which is good in His sight.” 1 Chronicles 19:13 . The united forces of the allies were overcome in the first engagement. But they were not yet willing to give over the contest, and the next year renewed the war. The king of Syria gathered his forces, threatening Israel with an immense army. David, realizing how much dependent upon the result of this contest, took the field in person, and by the blessing of God inflicted upon the allies a defeat so disastrous that the Syrians, from Lebanon to the Euphrates, not only gave up the war, but became tributary to Israel. Against the Ammonites David pushed the war with vigo…
"Be of good courage, and let us behave ourselves valiantly for our people, and for the cities of our God: and let the Lord do that which is good in his sight."
Ellen White directly references 1 Chronicles 19:13 in this passage.
"Be strong and of a good courage, fear not, nor be afraid of them: for the Lord thy God, he it is that doth go with thee; he will not fail thee, nor forsake thee."
The principle of being courageous and not fearing because God is with you is present in both Deuteronomy 31:6 and the sentiment expressed by Joab in the EGW passage. While Joab's specific words are from 1 Chronicles 19:13, the underlying principle aligns with Deuteronomy 31:6.
"The dangers which had threatened the nation with utter destruction proved, through the providence of God, to be the very means by which it rose to unprecedented greatness. In commemorating his remarkable deliverances, David sings: PP 715.3"
"And we know that all things work together for good to them that love God, to them who are the called according to his purpose."
Both passages express the idea that God can use difficult or dangerous situations to bring about good. Romans 8:28 is a general statement of this principle, while the EGW passage applies it specifically to Israel's rise to greatness after facing threats.
"“The Lord liveth; and blessed be my rock; and exalted be the God of my salvation: Even the God that executeth vengeance for me, and subdueth peoples under me. He rescueth me from mine enemies: Yea, Thou liftest me up above them that rise up against me: Thou deliverest me from the violent man. Therefore I will give thanks unto Thee, O Lord, among the nations, And will sing praises unto Thy name. Great deliverance giveth He to His king; And sheweth loving-kindness to His anointed, To David and to his seed, forevermore.” Psalm 18:46-50 , R.V. PP 715.4"
"The Lord liveth; and blessed be my rock; and let the God of my salvation be exalted."
The EGW passage directly quotes Psalm 18:46, making it a clear and undeniable explicit allusion.
"The Lord liveth; and blessed be my rock; and let the God of my salvation be exalted. It is God that avengeth me, and subdueth the people under me. He delivereth me from mine enemies: yea, thou liftest me up above those that rise up against me: thou hast delivered me from the violent man. Therefore will I give thanks unto thee, O Lord, among the heathen, and sing praises unto thy name. Great deliverance giveth he to his king; and sheweth mercy to his anointed, to David, and to his seed for evermore."
Ellen White directly references Psalms 18:46-50 in this passage.