make an example of
make an example of {v. phr.}
To punish (someone) publicly to show what happens when someone does wrong.
The teacher made an example of the boy who copied from another student during a test.
The Pilgrims made an example of a thief by putting him in the stocks.
Categories:
Source: A Dictionary of American Idioms