Ok I think this was a short story I read, but it may have been a novel or even a tv show or movie.
There is a man in jail for murder and a lady is there asking him to write in a journal or something and show regret for killing his victim(s)? And he doesn’t show regret so the family of the victim come in and kill him?