make an example of somebody
make an example (out) of (one)
To punish one harshly so that others will avoid committing the same offense in order to avoid such punishment. The judge was known to make an example of certain criminals by handing out severe sentences. Miss Johnson made an example of out Timmy when he started talking during the presentation, and everybody else was dead silent afterward.