Sri-bhagavan uvaca
ye’ py anya-devata-bhakta
yajante sraddhayanvitah
te’ pi mam eva kaunteya
yajanty avidhi-purvakam
ye’ py anya-devata-bhakta
yajante sraddhayanvitah
te’ pi mam eva kaunteya
yajanty avidhi-purvakam
(The Most Confidential Knowledge, Text 23, Chapter 9)
Meaning: Those who are devotees of other gods and who worship them with faith actually worship only Me, O son of Kunti, but they do so in a wrong way.
Bhagavad Gita: Worship of demigods is offered to Me indirectly(The Most Confidential Knowledge, Text 23, Chapter 9)