"Throughout the land bands of pilgrims were making their way toward Jerusalem. The shepherds from their flocks, the herdsmen from the mountains, fishers from the Sea of Galilee, the husbandmen from their fields, and sons of the prophets from the sacred schools—all turned their steps toward the place where God's presence was revealed. They journeyed by short stages, for many went on foot. The caravans were constantly receiving accessions, and often became very large before reaching the Holy City. PP 538.2"
The EGW passage describes people traveling to Jerusalem, and Psalm 122:1 expresses joy at going to the house of the Lord. The connection is thematic, reflecting the joy and anticipation of pilgrimage.
"The journey to Jerusalem, in the simple, patriarchal style, amidst the beauty of the springtime, the richness of midsummer, or the ripened glory of autumn, was a delight. With offerings of gratitude they came, from the man of white hairs to the little child, to meet with God in His holy habitation. As they journeyed, the experiences of the past, the stories that both old and young still love so well, were recounted to the Hebrew children. The songs that had cheered the wilderness wandering were sung. God's commandments were chanted, and, bound up with the blessed influences of nature and of kindly human association, they were forever fixed in the memory of many a child and youth. Ed 42.1"
Both passages express joy and anticipation associated with going to the house of the Lord. EGW expands on the experience of the journey and the communal aspect of worship, amplifying the sentiment expressed in the Psalm.
"to neglect to attend public worship, thus failing to improve the privileges that would enable him to do better and more effective service in the cause of truth. 5T 425.1"
Both passages deal with the importance and joy of attending worship. While EGW speaks of neglecting worship, Psalm 122:1 expresses gladness at the opportunity to go to the house of the Lord. They are opposite sides of the same coin.
Psalms 122:1-6"I was glad when they said unto me, Let us go into the house of the Lord. Our feet shall stand within thy gates, O Jerusalem. Jerusalem is builded as a city that is compact together: Whither the tribes go up, the tribes of the Lord, unto the testimony of Israel, to give thanks unto the name of the Lord. For there are set thrones of judgment, the thrones of the house of David. Pray for the peace of Jerusalem: they shall prosper that love thee."
"“I was glad when they said unto me, Let us go unto the house of the Lord. Our feet are standing Within thy gates, O Jerusalem.... Whither the tribes go up, even the tribes of the Lord, ... To give thanks unto the name of Jehovah.... Pray for the peace of Jerusalem: They shall prosper that love thee.” Psalm 122:1-6 , R.V. PP 538.4"
Ellen White directly references Psalms 122:1-6 in this passage.
The flowing of the water from the rock in the desert was celebrated by the Israelites, after their establishment in Canaan, with demonstrations of great rejoicing. In the time of Christ this celebration had become a most impressive ceremony. It took place on the occasion of the Feast of Tabernacles, when the people from all the land were assembled at Jerusalem. On each of the seven days of the feast the priests went out with music and the choir of Levites to draw water in a golden vessel from the spring of Siloam. They were followed by multitudes of the worshipers, as many as could get near the stream drinking of it, while the jubilant strains arose, “With joy shall ye draw water out of the wells of salvation.” Isaiah 12:3 . Then the water drawn by the priests was borne to the temple amid the sounding of trumpets and the solemn chant, “Our feet shall stand within thy gates, O Jerusalem.” Psalm 122:2 . The water was poured out upon the altar of burnt offering, while songs of praise rang…
Ellen White directly references Psalms 122:2 in this passage.
"At the first dawn of day, the priests sounded a long, shrill blast upon their silver trumpets, and the answering trumpets, and the glad shouts of the people from their booths, echoing over hill and valley, welcomed the festal day. Then the priest dipped from the flowing waters of the Kedron a flagon of water, and, lifting it on high, while the trumpets were sounding, he ascended the broad steps of the temple, keeping time with the music with slow and measured tread, chanting meanwhile, “Our feet shall stand within thy gates, O Jerusalem.” Psalm 122:2 . DA 448.5"
Ellen White directly references Psalms 122:2 in this passage.
Psalms 122:2-7"Our feet shall stand within thy gates, O Jerusalem. Jerusalem is builded as a city that is compact together: Whither the tribes go up, the tribes of the Lord, unto the testimony of Israel, to give thanks unto the name of the Lord. For there are set thrones of judgment, the thrones of the house of David. Pray for the peace of Jerusalem: they shall prosper that love thee. Peace be within thy walls, and prosperity within thy palaces."
"“Peace be within thy walls, And prosperity within thy palaces.” “Open to me the gates of righteousness: I will go into them, and I will praise the Lord.” “I will pay my vows unto the Lord Now in the presence of all His people, In the courts of the Lord's house, In the midst of thee, O Jerusalem, Praise ye the Lord.” Psalm 122:7 ; 118:19 ; Psalm 116:18, 19 . PP 539.3"