"Why is it that our youth, and even those of more mature years, are so easily led into temptation and sin? It is because the Bible is not studied and meditated upon as it should be. If it were made the daily study, there would be an inward rectitude, a strength of spirit, that would resist the temptations of the enemy. A firm, decided effort to turn from evil is not seen in the life, because the instruction given by God is disregarded. There is not put forth the effort that there should be to fill the mind with pure, holy thoughts and to rid it of all that is impure and untrue. There is not the choosing of the better part, the sitting at the feet of Jesus, as did Mary, to learn lessons from the divine Teacher. CT 442.2"
"Thy word have I hid in mine heart, that I might not sin against thee."
Both passages connect hiding/studying God's word with resisting sin.
"When God's word is made the man of our counsel, when we search the Scriptures for light, heavenly angels come near to impress the mind and to enlighten the understanding so that it can be truly said, “The entrance of Thy words giveth light; it giveth understanding unto the simple.” Psalm 119:130 . It is no marvel that there is not more heavenly-mindedness seen among the youth who profess Christianity, when so little attention is given to the word of God. The divine counsels are not heeded; the divine admonitions are not obeyed. Grace and heavenly wisdom are not sought, that every taint of corruption may be cleansed from the life. CT 442.3"
"The entrance of thy words giveth light; it giveth understanding unto the simple."
EGW directly quotes Psalm 119:130.