nail (one) to the wall
To punish, berate, or hurt one in a very severe fashion for a wrongdoing or transgression. As one of her first orders of business, the new president has sworn to nail cyber-criminals to the wall. The boss nailed me to the wall for messing up the Jacobson account.
nail somebody to the ˈwall
(informal) punish somebody and/or make them suffer because you are very angry with them: I’m going to nail him to the wall for what he’s done!