Bhagavad Gita 16.17

आत्मसंभाविता: स्तब्धा धनमानमदान्विता: |
यजंते नामयज्ञैस्ते दंभेनावचम्

Translation

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.