Bhagavad Gita · 9.25
यान्ति देवव्रता देवान्पितॄन्यान्ति पितृव्रताः।भूतानि यान्ति भूतेज्या यान्ति मद्याजिनोऽपि माम्॥
yānti deva-vratā devān pitṝn yānti pitṛ-vratāḥ bhūtāni yānti bhūtejyā yānti mad-yājino 'pi mām
Worshippers of the celestials go to the celestials; worshippers of the ancestors go to the ancestors; worshippers of the spirits go to the spirits; but My worshippers come to Me.
— Bhagavad Gita 9.25
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)