make an example of
Punish someone so as to be a warning to others, as in The teacher made an example of the boy she caught cheating, or The judge imposed a tough sentence to make an example of the car thieves. This usage is first recorded in John Wycliffe's followers' translation of the Bible (c. 1382).