Tail Between One's Legs, With One's

Dejected, cowed, or ashamed, especially after a defeat or being proven wrong.

Examples:

  • After bragging about her musical ability, she lost the competition and went off with her tail between her legs.

Origin: First half of 1800s