Chapter 17, Verse 12
अभिसंधाय तु फलं दम्भार्थमपि चैव यत्।इज्यते भरतश्रेष्ठ तं यज्ञं विद्धि राजसम्॥
abhisaṃdhāya tu phalaṃ dambhārthamapi caiva yat ijyate bharataśreṣṭha taṃ yajñaṃ viddhi rājasam
Meaning
But O best of the Bharatas, when sacrifice is performed with an eye on the result, or merely to put on a show, know that sacrifice to be rajasic.
