"The relief of tears was denied me. I could not weep readily, as could my twin sister; though my heart was heavy, and ached as if it were breaking, I could not shed a tear. I often felt that it would greatly relieve me to weep away my sorrow. Sometimes the kindly sympathy of friends banished my gloom and removed, for a time, the leaden weight that oppressed my heart. How vain and empty seemed the pleasures of earth to me then! how changeable the friendships of my young companions! Yet these little schoolmates were not unlike a majority of the great world's people. A pretty face, a handsome dress, attracts them; but let misfortune take these away, and the fragile friendship grows cold or is broken. But when I turned to my Saviour, He comforted me. I sought the Lord earnestly in my trouble, and received consolation. I felt assured that Jesus loved even me. 1T 12.2"
The EGW passage describes the perceived emptiness and changeability of worldly pleasures and friendships, while Ecclesiastes declares that 'all is vanity.' The shared theme of the fleeting and ultimately unsatisfying nature of earthly things makes this a valid thematic parallel.