Bhagavad Gita Chapter 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
Translation
Those who worship the demigods will take birth among the demigods; those who worship the ancestors go to the ancestors; those who worship ghosts and spirits will take birth among such beings; and those who worship Me will live with Me.