Bhagavad Gita 17.4
Chapter 17: The three kinds of faith
यजन्ते सात्त्विका देवान्यक्षरक्षांसि राजसाः ।
प्रेतान्भूतगणांश्चान्ये यजन्ते तामसा जनाः ॥ ४ ॥
Pure men worship the Gods; the passionate the gnomes and giants; the others, the dark folk, worship ghosts and troops of nature-spirits.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.