Bhagavad Gita · 7.23
अन्तवत्तु फलं तेषां तद्भवत्यल्पमेधसाम्।देवान्देवयजो यान्ति मद्भक्ता यान्ति मामपि॥
antavat tu phalaṁ teṣhāṁ tad bhavaty alpa-medhasām devān deva-yajo yānti mad-bhaktā yānti mām api
But the fruit gained by these people of small understanding is temporary. The worshippers of the gods go to the gods; My devotees come to Me.
— Bhagavad Gita 7.23
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)