"Those who have merely a form of godliness, and yet are connected with the cause in business relations, are to be feared. They will surely betray their trust. They will be overcome by the devices of the tempter and will imperil the cause of God. There will be temptations to allow self to control; an overbearing, critical spirit will arise, and in many cases compassion and consideration for those who need to be dealt with in thoughtful tenderness will be wanting. 5T 429.1"
"Having a form of godliness, but denying the power thereof: from such turn away."
EGW directly references the concept of having 'a form of godliness' and warns against those who only have this form, which is the central theme of 2 Timothy 3:5.
"would sow the precious seeds of kindness, love, faith, and courage, they would make melody to God in their hearts as they travel the upward way, rejoicing in the bright beams of the Sun of Righteousness, and in the great gathering day they would receive an eternal reward. 5T 429.2"
"Serve the Lord with gladness: come before his presence with singing."
Both passages encourage joyful service to God. EGW's passage expands on the idea of gladness by mentioning specific virtues and rewards, amplifying the sentiment in Psalms.