"You have fixed your eyes upon what you have given to different enterprises, and it looks large to you. But had you done very much more, had your hearts expanded, and your hands dispensed to the cause of God and to the needy, you would have done no more than your duty, and you would have been far happier. The Lord calls upon you to bring your offering to the altar, and not hold it within reach merely, but lay it on the altar. The altar sanctifies the gift when it is placed upon it, and not before. 2T 167.1"
"For where your treasure is, there will your heart be also."
Both passages connect one's heart and treasure. The EGW passage speaks of laying offerings on the altar, which is a specific application of the general principle in Matthew 6:21.
"for the salvation of souls, and who will sacrifice anything that they may be saved. No one else can do this work for you; the offerings of others, if ever so liberal, cannot take the place of yours. It is a surrender to God which you have to make, which no other one can make for you. It is only the Spirit's power, working through mighty faith, that can make you able to successfully resist the many snares Satan has laid for your feet. The words and example of your Redeemer will be the light and strength of your heart. If you follow and trust in Him, He will not leave you to perish. You fear too much the displeasure of those who do not love and serve God. Why should you wish to keep the friendship of your Lord's enemies or be influenced by their opinions? “Know ye not that the friendship of the world is enmity with God?” If the heart were right, there would be a more decided separation from the world. 2T 167.2"
"I beseech you therefore, brethren, by the mercies of God, that ye present your bodies a living sacrifice, holy, acceptable unto God, which is your reasonable service."
The EGW passage directly echoes the call to surrender and sacrifice found in Romans 12:1, emphasizing the personal nature of this surrender and its importance for resisting temptation.