One verse

Bhagavad Gita 17.4

17.4

यजन्ते सात्त्विका देवान्यक्षरक्षांसि राजसाः | प्रेतान्भूतगणांश्चान्ये यजन्ते तामसा जनाः ||१७-४||

yajante sāttvikā devānyakṣarakṣāṃsi rājasāḥ . pretānbhūtagaṇāṃścānye yajante tāmasā janāḥ ||17-4||

yajante
worship
sāttvikāḥ
those who are in the mode of goodness
devān
demigods
yakṣa-rakṣāṁsi
demons
rājasāḥ
those who are in the mode of passion
pretān
spirits of the dead
bhūta-gaṇān
ghosts
ca
and
anye
others
yajante
worship
tāmasāḥ
in the mode of ignorance
janāḥ
people

Men in the mode of goodness worship the demigods; those in the mode of passion worship the demons; and those in the mode of ignorance worship ghosts and spirits.