17:4  

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

Transliteration

yajante saattwikaa dewaanyakSharakShaaMsi raajasaaH ।

pretaanbhootagaNaaMshchaanye yajante taamasaa janaaH ॥१७- ४॥

Translation

The sattvic sacrifice to gods. The rajasic keep nature-spirits.
Furthermore, hordes of corpses and ghosts are sacrificed to by tamasic people.

Translation

The Saattvika persons worship Devas, the Raajasika people worship demigods and demons, and the Taamasika persons worship ghosts and spirits.

Translation

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.