Bhagavad Gita · 17.1
अर्जुन उवाचये शास्त्रविधिमुत्सृज्य यजन्ते श्रद्धयान्विताः।तेषां निष्ठा तु का कृष्ण सत्त्वमाहो रजस्तमः॥
arjuna uvācha ye śhāstra-vidhim utsṛijya yajante śhraddhayānvitāḥ teṣhāṁ niṣhṭhā tu kā kṛiṣhṇa sattvam āho rajas tamaḥ
Arjuna asked: O Krishna, what is the status of those who worship with faith but disregard the injunctions of the scriptures? Is their faith in the mode of goodness, passion, or ignorance?
— Bhagavad Gita 17.1
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)