Śrīmad-Bhāgavatam · Text 4.29.47
Who is speaking and story frame
तस्मात्कर्मसु बर्हिष्मन्नज्ञानादर्थकाशिषु ।
मार्थदृष्टिं कृथा: श्रोत्रस्पर्शिष्वस्पृष्टवस्तुषु ॥ ४७ ॥
tasmāt karmasu barhiṣmann
ajñānād artha-kāśiṣu
mārtha-dṛṣṭiṁ kṛthāḥ śrotra-
sparśiṣv aspṛṣṭa-vastuṣu
My dear King Barhiṣmān, you should never out of ignorance take to the Vedic rituals or to fruitive activity, which may be pleasing to hear about or which may appear to be the goal of self-interest. You should never take these to be the ultimate goal of life.
Read Śrīla Prabhupāda's purport on Vedabase.io