Bhagavad-gītā 9.23
BG 9.23
Open the full passageयेऽप्यन्यदेवता भक्ता यजन्ते श्रद्धयान्विताः । तेऽपि मामेव कौन्तेय यजन्त्यविधिपूर्वकम् ॥२३॥
Sanskrit
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 Kuntī, but they do so in a wrong way.