Srimad Bhagavatam Canto 10, Chapter 69, Text 34

SB 10.69.34

yajantam sakalan devan
 kvapi kratubhir urjitaih
purtayantam kvacid dharmam
 kurparama-mathadibhih
 
Translation: 
 
Somewhere He was worshiping all the demigods with elaborate sacrifices, and elsewhere He was fulfilling His religious obligations by doing public welfare work, such as the construction of wells, public parks and monasteries.
Srimad Bhagavatam Canto 10, Chapter 69, Text 33
Srimad Bhagavatam Canto 10, Chapter 69, Text 35