expression

That'll teach you.

Theme: consequences Keyword: experience

means

Suggests that an unpleasant outcome should teach someone not to repeat a mistake.

Example

You left your coat outside in the rain? That'll teach you!