Bhagavad-gītā As It Is · Text 17.19
Austerities of body, speech and mind
मूढग्राहेणात्मनो यत्पीडया क्रियते तप: ।
परस्योत्सादनार्थं वा तत्तामसमुदाहृतम् ॥ १९ ॥
mūḍha-grāheṇātmano yat
pīḍayā kriyate tapaḥ
parasyotsādanārthaṁ vā
tat tāmasam udāhṛtam
Penance performed out of foolishness, with self-torture or to destroy or injure others, is said to be in the mode of ignorance.
Read Śrīla Prabhupāda's purport on Vedabase.io