鞭屍

Verb

 * 1) to punish posthumously by whipping
 * 2)  to mock or laugh at someone's previous actions, even after a very long time

Usage notes
Can be used literally or figuratively. Figuratively, it refers to continued punishment beyond any practical effect, cf. beat a dead horse.