Srimad-Bhagavatam: Canto 11 - Chapter 1 - Verse 23
Sanskrit:
इष्ट्वेह देवता यज्ञै: स्वर्लोकं याति याज्ञिक: ।भुञ्जीत देववत्तत्र भोगान् दिव्यान् निजार्जितान् ॥ २३ ॥
ITRANS:
iṣṭveha devatā yajñaiḥsvar-lokaṁ yāti yājñikaḥbhuñjīta deva-vat tatrabhogān divyān nijārjitān
Translation:
If on earth one performs sacrifices for the satisfaction of the demigods, he goes to the heavenly planets, where, just like a demigod, he enjoys all of the heavenly pleasures he has earned by his performances.