A person has no authority whatsoever over his own body to strike it, to shame it, or to cause it pain.

אין לאדם רשות על גופו כלל להכותו ולא לביישו ולא לצערו
Shiurim in this topic
923. Clarifications on Self-Harm, Teshuvah, and the Role of Mashiach הבהרות על חבלה עצמית, תשובה ותפקיד המשיח