Bhagavad Gita 17.12
Chapter 17: The three kinds of faith
अभिसन्धाय तु फलं दम्भार्थमपि चैव यत् ।
इज्यते भरतश्रेष्ठ तं यज्ञं विद्धि राजसम् ॥ १२ ॥
The sacrifice offered with a view verily to fruit, and also indeed for self-glorification, O best of the Bhâratas; know thou that to be of passion.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.