ザマだ

serves you right

→ 様
phrase Uncommon #8,921
serves you right Often written ざまあだ or ざまだ; used to express contempt or satisfaction at someone’s misfortune. The example sentences appear to use ようだ, meaning “seems” or “looks like,” rather than this term.
JA: 失敗して、いいザマだ。
EN: You failed—serves you right.

何てザマだ!

What a sorry sight!

— ワンス・アポン・ア・タイム・イン・ハリウッド (2019)

泣く子も黙る斧頭会が何てザマだ!

The Axe Gang, feared enough to silence even crying children—look at the sorry state you're in!

— カンフーハッスル (2004)

いいザマだな

Serves you right.

— ファイト・クラブ (1999)

とんだザマだな

What a sorry state you're in.

— グッドフェローズ (1990)