"Certain ministers who have been invited to houses by the heads of families, have spent the few hours of their visit in secluding themselves in an unoccupied room to indulge their inclination for reading and writing. The family that entertained them derived no benefit from the visit. The ministers accepted the hospitality extended them without giving an equivalent in the labor that was so much needed. GW 338.1"
"He that receiveth you receiveth me, and he that receiveth me receiveth him that sent me. He that receiveth a prophet in the name of a prophet shall receive a prophet’s reward; and he that receiveth a righteous man in the name of a righteous man shall receive a righteous man’s reward. 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."
The EGW passage criticizes ministers who fail to provide spiritual benefit when visiting families, contrasting with the principle of hospitality and reward for receiving ministers and righteous individuals in Matthew 10:40-42. Both passages deal with the responsibility and reciprocity involved in receiving and ministering.
"People are easily reached through the avenues of the social circle. But many ministers dread the task of visiting; they have not cultivated social qualities, have not acquired that genial spirit that wins its way to the hearts of the people. GW 338.2"
"To the weak became I as weak, that I might gain the weak: I am made all things to all men, that I might by all means save some."
Both passages emphasize adapting to others to reach them. Paul's statement is broader, but EGW applies it to social interaction for ministers.