Srimad-Bhagavatam: Canto 10 - Chapter 1 - Verse 32


किं नस्तपश्चीर्णमधोक्षजार्चनंपूर्तेष्टदत्तमुत भूतसौहृदम् ।यत्सम्परेत: पुनरेव बालकोदिष्टय‍ा स्वबन्धून् प्रणयन्नुपस्थित: ॥ ३२ ॥


kiṁ nas tapaś cīrṇam adhokṣajārcanaṁpūrteṣṭa-dattam uta bhūta-sauhṛdamyat samparetaḥ punar eva bālakodiṣṭyā sva-bandhūn praṇayann upasthitaḥ


Nanda Mahārāja and the others said: We must previously have performed austerities for a very long time, worshiped the Supreme Personality of Godhead, performed pious activities for public life, constructing public roads and wells, and also given charity, as a result of which this boy, although faced with death, has returned to give happiness to His relatives.


Nanda Mahārāja confirmed that by pious activities one can become a sādhu so that one will be happy at home and one’s children will be protected. In śāstra there are many injunctions for karmīs and jñānīs, especially for karmīs, by which they can become pious and happy even in material life. According to Vedic civilization, one should perform activities for the benefit of the public, such as constructing public roads, planting trees on both sides of the road so that people can walk in the shade, and constructing public wells so that everyone can take water without difficulty. One should perform austerity to control one’s desires, and one must simultaneously worship the Supreme Personality of Godhead. Thus one becomes pious, and as a result one is happy even in material conditions of life.