At least in the Maghreb, there is a word to say "serves [somebody] right!", i.e. "!شاه" or "ccah!" in Berber form.
I'm struggling to find its etymology. Although it might be Arabic or Berber, the reference Kabyle-French dictionary Parler des At Mangellat, II (in french) reports this word and links it to the root C-H
, without mentioning any Arabic origin or an etymology. Thus, it might a Berber root.
Are there some information about it?