Bhagavad Gita 17.19
मूढग्राहेणात्मनो यत्पीडया क्रियते तपः। परस्योत्सादनार्थं वा तत्तामसमुदाहृतम्।।17.19।।
mūḍhagrāheṇātmano yatpīḍayā kriyate tapaḥ| parasyotsādanārthaṃ vā tattāmasamudāhṛtam||17.19||
mudhagrahenatmano yatpidaya kriyate tapah parasyotsadanartham va tattamasamudahritam17.19
Meaning
Austerity performed with foolish stubbornness or with self-torture, or for the purpose of destroying another — that is declared to be tamasic.
जो तप मूढ़तापूर्वक स्वयं को पीड़ित करते हुए अथवा अन्य लोगों के नाश के लिए किया जाता है, वह तप तामस कहा गया है।
This is verse 19 of 28 in Chapter 17 (Shraddhatraya Vibhaga Yoga) of the Bhagavad Gita.