Bhagavad Gita 17.18

सत्कार्मान्पूजार्थं तपो दंभेन चैव यत् |
क्रियते तदिः प्रोक्तं राजसं चलमध्रुवम्

Translation

Austerity that is performed with ostentation for the sake of gaining honor, respect, and adoration is in the mode of passion. Its benefits are unstable and transitory.