Bhagwad Gita
Chapter 9, Verse 25
यान्ति देवव्रता देवान् पितृ़न्यान्ति पितृव्रताः।
भूतानि यान्ति भूतेज्या यान्ति मद्याजिनोऽपि माम्।।9.25।।
Those who worship the demigods will take birth among the demigods; those who worship ghosts and spirits will take birth among such beings; those who worship ancestors go to the ancestors; and those who worship Me will live with Me.