shoot yourself in the foot

Shoot yourself in the foot is an idiom used when you want to express that you have done something that damages your ambition, career and goals. Rather than a literal phrase where shooting yourself in the foot would cause physical harm and pain, this is more of a psychological pain in which it affects and damages your future including your career and personal and professional ambitions and goals.