Bhagavad Gita 16.23

य: शास्त्रविधिमुत्सृज्य वर्तते कामकारत: |
न स सिद्धिमवाप्नोति न सुखं न परां गतिम्

Translation

Those who act under the impulse of desire, discarding the injunctions of the scriptures, attain neither perfection, nor happiness, nor the supreme goal in life.