"Chapter 34—The Care of Orphans Among all whose needs demand our interest, the widow and the fatherless have the strongest claims upon our tender sympathy. They are the objects of the Lord's special care. They are lent to Christians in trust for God. “Pure religion and undefiled before God and the Father is this, To visit the fatherless and widows in their affliction, and to keep himself unspotted from the world.” James 1:27 . 6T 281"
"Pure religion and undefiled before God and the Father is this, To visit the fatherless and widows in their affliction, and to keep himself unspotted from the world."
Ellen White directly references James 1:27 in this passage.
"will come up in remembrance before God, to be rewarded by and by. 6T 281.5"
"And whosoever shall give to drink unto one of these little ones a cup of cold water only in the name of a disciple, verily I say unto you, he shall in no wise lose his reward."
Both passages convey the idea that acts of kindness and service will be remembered and rewarded by God. While the EGW passage is more general, it aligns with the sentiment expressed in Matthew 10:42 regarding the reward for even small acts of compassion.