"We then thought of those who had not accustomed themselves to privations and hardships. Where were such now? They were not in the company. At every change some were left behind, and those only remained who had accustomed themselves to endure hardships. The privations of the way only made these more eager to press on to the end. 2T 595.2"
"Because strait is the gate, and narrow is the way, which leadeth unto life, and few there be that find it."
Both passages discuss the difficulty and narrowness of the path to salvation, and the fact that few find it or persevere.
"Our danger of falling from the pathway increased. We pressed close to the white wall, yet could not place our feet fully upon the path, for it was too narrow. We then suspended nearly our whole weight upon the cords, exclaiming: “We have hold from above! We have hold from above!” The same words were uttered by all the company in the narrow pathway. As we heard the sounds of mirth and revelry that seemed to come from the abyss below, we shuddered. We heard the profane oath, the vulgar jest, and low, vile songs. We heard the war song and the dance song. We heard instrumental music and loud laughter, mingled with cursing and cries of anguish and bitter wailing, and were more anxious than ever to keep upon the narrow, difficult pathway. Much of the time we were compelled to suspend our whole weight upon the cords, which increased in size as we progressed. 2T 595.3"
"He brought me up also out of an horrible pit, out of the miry clay, and set my feet upon a rock, and established my goings."
Both passages describe being rescued from a dangerous or negative situation and placed on a more secure path. The EGW passage emphasizes clinging to something for support, while the Psalm speaks of God establishing one's goings.