Bhagavad Gita Chapter 9.23
ye ’py anya-devatā-bhaktā
yajante śraddhayānvitāḥ
te ’pi mām eva kaunteya
yajanty avidhi-pūrvakam
Translation
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.