Bhagavad Gita 16.23

यः शास्त्रविधिमुत्सृज्य वर्तते कामकारतः।न स सिद्धिमवाप्नोति न सुखं न परां गतिम् ॥१६.२३॥

yaḥ śāstravidhimutsṛjya vartate kāmakārataḥna sa siddhimavāpnoti na sukhaṃ na parāṃ gatim

He who, having cast aside the ordinances of the scriptures, acts under the impulse of desire, does not attain perfection, nor happiness, nor the Supreme Goal.

गीता