यान्ति देवव्रता देवान्पितॄन्यान्ति पितृव्रताः।
भूतानि यान्ति भूतेज्या यान्ति मद्याजिनोऽपि माम्॥25॥
yānti devavratā devān pitṝn yānti pitṛvratāḥ bhūtāni yānti bhūtejyā yānti madyājino 'pi mām
Those vowed to the gods go to the gods, and those vowed to the ancestors go to the ancestors. Worshippers of spirits go to the spirits, and my worshippers come to me.
The rule in this verse is simple: as the worship, so the attainment. A person slowly moves towards whatever the mind stays fixed on. So the Gita says that one should choose one's aim with thought and care.
yanti: go; deva-vratah: those vowed to the gods; devan: to the gods; pitrin: to the ancestors; yanti: go; pitri-vratah: those vowed to the ancestors; bhutani: to the spirits; yanti: go; bhuta-ijyah: worshippers of spirits; yanti: come; mad-yajinah: my worshippers; api: also; mam: to me

