Cutting off one's nose to spite one's face
Expression; harming the self unintentionally trying to solve a problem or get revenge / From Wikipedia, the free encyclopedia
"Cutting off one's nose to spite one's face" is an expression used to describe a needlessly self-destructive overreaction to a problem: "Don't cut off your nose to spite your face" is a warning against acting out of pique, or against pursuing revenge in a way that would damage oneself more than the object of one's anger.[1]
Look up cut off one's nose to spite one's face in Wiktionary, the free dictionary.