"Your way has been hedged up, on the right hand and on the left, to hinder your progress to perdition. The Lord has brought your unruly, untamable spirit to submit to Him. By a mixture of judgment and mercy you have been brought to repentance. Like Jonah, you fled from present duty to sea. God hedged up your way by the visitations of His providence. You could not prosper or be happy, because you could not leave yourself behind. You took self and sin with you. You cherished a discontented, restless spirit and would not do the duties in your path. You wanted a change, some larger work. You became roving in disposition. 2T 423.1"
"Therefore, behold, I will hedge up thy way with thorns, and make a wall, that she shall not find her paths."
Both passages use the imagery of being 'hedged up' to describe God's intervention to prevent someone from going astray. The EGW passage explicitly references the story of Jonah, further strengthening the connection.
"The eye of the dear Saviour has been upon you, or you would have been left in your unsettled state, and in your sins, to become abandoned in character and miserable in circumstances. While in the land of strangers and in the hour of sickness, you have sadly felt your forlorn, desolate condition. You have passed long nights and weary days of restlessness and pain, away from your mother and sisters, with none but stranger hands to do a kindly office for you, and no Christian hope to sustain you. 2T 423.2"
"The eyes of the Lord are upon the righteous, and his ears are open unto their cry."
Both passages speak of God's attentiveness and care, though the Psalm is a general statement and the EGW passage is a specific application.