Bhagavad Gita Shloka 17.4 — Shraddhatraya Vibhaga Yoga
यजन्ते सात्त्विका देवान्यक्षरक्षांसि राजसाः।
प्रेतान्भूतगणांश्चान्ये यजन्ते तामसा जनाः।।17.4।।
Meaning
Sattvic people worship the gods; rajasic people worship the yakshas and rakshasas; tamasic people worship ghosts and spirits. The object of worship reveals the worshipper's nature.