Srimad Bhagavatam Canto 10, Chapter 07, Text 32

SB 10.7.32

kim nas tapas cirnam adhoksajarcanam
purtesta-dattam uta bhuta-sauhrdam
yat samparetah punar eva balako
distya sva-bandhun pranayann upasthitah
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Nanda Maharaja 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.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Nanda Maharaja confirmed that by pious activities one can become a sadhu so that one will be happy at home and one’s children will be protected. In sastra there are many injunctions for karmis and jñanis, especially for karmis, 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.
Srimad Bhagavatam Canto 10, Chapter 07, Text 31
Srimad Bhagavatam Canto 10, Chapter 07, Text 33