Prisoner whipped then put to death