"if you will do everything as if you were in the immediate presence of God, you will be saved from yielding to temptation, and may hope to be kept pure, spotless, and undefiled till the last. If you hold the beginning of your confidence firm unto the end, your ways will be established in God, and what grace has begun, glory will crown in the kingdom of our God. The fruits of the Spirit are love, joy, peace, long-suffering, gentleness, goodness, faith, meekness, temperance; against such there is no law. If Christ be within us, we shall crucify the flesh with the affections and lusts. GW 128.1"
"But the fruit of the Spirit is love, joy, peace, longsuffering, gentleness, goodness, faith, Meekness, temperance: against such there is no law."
EGW directly quotes "fruits of the Spirit" and "crucify the flesh with the affections and lusts" from Galatians 5, making it an explicit allusion.
"And every man that hath this hope in him purifieth himself, even as he is pure."
Both passages discuss purity and striving for it. EGW's statement about being "kept pure, spotless, and undefiled" echoes the sentiment of 1 John 3:3 about purifying oneself.