Bhagavad Gita: Chapter 16, Verse 17

आत्मसम्भाविता: स्तब्धा धनमानमदान्विता: |
यजन्ते नामयज्ञैस्ते दम्भेनाविधिपूर्वकम् || 17||

ātma-sambhāvitāḥ stabdhā dhana-māna-madānvitāḥ
yajante nāma-yajñais te dambhenāvidhi-pūrvakam

ātma-sambhāvitāḥself-conceited; stabdhāḥstubborn; dhanawealth; mānapride; madaarrogance; anvitāḥfull of; yajanteperform sacrifice; nāmain name only; yajñaiḥsacrifices; tethey; dambhenaostentatiously; avidhi-pūrvakamwith no regards to the rules of the scriptures

atma-sambhavitah stabdha dhana-mana-madanvitah
yajante nama-yajnais te dambhenavidhi-purvakam

Translation

BG 16.17: Such self-conceited and stubborn people, full of pride and arrogant in their wealth, perform ostentatious sacrifices in name only, with no regard to the rules of the scriptures.

Commentary

Virtuous people perform sacrifice to purify the self and to please God. The travesty is that demoniac people also perform sacrifices, but with an impure intent. They do grandiose ritualistic ceremonies so as to look pious in the eyes of society. But they do not adhere to the injunctions of the scriptures, and instead perform sacrifices for personal advertisement and pretentious display. However, the injunction of the scriptures is: gūhitasya bhaved vṛiddhiḥ kīrtitasya bhavet kṣhayaḥ (Mahabharat)[v11] “If we advertise a good deed we have done, its merit decreases; if we keep it secret, its merit multiplies.” In this verse, Shree Krishna dismisses the ritualistic ceremonies of the demoniac by saying that they are incorrectly performed.