Bhagavad Gita 9.25

Chapter 9: The royal secret

यान्ति देवव्रता देवान् पितॄन्यान्ति पितृव्रताः ।
भूतानि यान्ति भूतेज्या यान्ति मद्याजिनोऽपि माम् ॥ २५ ॥

They who worship the Shining Ones go to the Shining Ones; to the Ancestors go the Ancestor-worshippers; to the Elements go those who sacrifice to Elementals; but My worshippers come unto Me.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.