Śrīmad-Bhāgavatam · Text 7.14.5
Who is speaking and story frame
यावदर्थमुपासीनो देहे गेहे च पण्डित: ।
विरक्तो रक्तवत्तत्र नृलोके नरतां न्यसेत् ॥ ५ ॥
yāvad-artham upāsīno
dehe gehe ca paṇḍitaḥ
virakto raktavat tatra
nṛ-loke naratāṁ nyaset
While working to earn his livelihood as much as necessary to maintain body and soul together, one who is actually learned should live in human society unattached to family affairs, although externally appearing very much attached.
Read Śrīla Prabhupāda's purport on Vedabase.io