Bhagavad Gita 17.12
Sacrifice which is performed for the sake of its results, or for self-glorification - that, O best of Aryans, is the product of passion.
अभिसंधाय तु फलं दम्भार्थमपि चैव यत्।इज्यते भरतश्रेष्ठ तं यज्ञं विद्धि राजसम्॥abhisaṃdhāya tu phalaṃ dambhārthamapi caiva yat|ijyate bharataśreṣṭha taṃ yajñaṃ viddhi rājasam||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).