Śrīmad-Bhāgavatam · Text 4.13.46
Who is speaking and story frame
कदपत्यं वरं मन्ये सदपत्याच्छुचां पदात् ।
निर्विद्येत गृहान्मर्त्यो यत्क्लेशनिवहा गृहा: ॥ ४६ ॥
kad-apatyaṁ varaṁ manye
sad-apatyāc chucāṁ padāt
nirvidyeta gṛhān martyo
yat-kleśa-nivahā gṛhāḥ
Then the King thought: A bad son is better than a good son because a good son creates an attachment for home, whereas a bad son does not. A bad son creates a hellish home from which an intelligent man naturally becomes very easily detached.
Read Śrīla Prabhupāda's purport on Vedabase.io