kad-apatyaṁ varaṁ manye
sad-apatyāc chucāṁ padāt
nirvidyeta gṛhān martyo
kad-apatyam—bad son; varam—better; manye—I think; sat-apatyāt—than a good son; śucām—of grief; padāt—the source; nirvidyeta—becomes detached; gṛhāt—from home; martyaḥ—a mortal man; yat—because of whom; kleśa-nivahāḥ—hellish; gṛhāḥ—home.
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.
The King began to think in terms of attachment and detachment from one’s material home. According to Prahlāda Mahārāja, the material home is compared to a blind well. If a man falls down into a blind well, it is very difficult to get out of it and begin life again. Prahlāda Mahārāja has advised that one give up this blind well of home life as soon as possible and go to the forest to take shelter of the Supreme Personality of Godhead. According to Vedic civilization, this giving up of home by vānaprastha and sannyāsa is compulsory. But people are so attached to their homes that even up to the point of death they do not like to retire from home life. King Aṅga, therefore, thinking in terms of detachment, accepted his bad son as a good impetus for detachment from home life. He therefore considered his bad son his friend since he was helping him become detached from his home. Ultimately one has to learn how to detach oneself from attachment to material life; therefore, if a bad son, by his bad behavior, helps a householder to go away from home, it is a boon.
Link to this page: https://prabhupadabooks.com/sb/4/13/46