Bhagavad Gita 17.4
यजन्ते सात्त्विका देवान्यक्षरक्षांसि राजसाः।प्रेतान्भूतगणांश्चान्ये यजन्ते तामसा जनाः।।17.4।।
Yajante sattvika devanyaksharakshansi rajasah, pretanbhutagananshchanye yajante tamasa janah
Simple meaning, written by AISattvic people worship the gods, rajasic people worship yakshas and rakshasas, and other tamasic people worship pretas and hosts of beings.