"like a hair-shirt to the sinner"

A hair shirt is an undergarment made of coarse animal hair, designed to irritate the skin and thus cause pain to the wearer.  It is worn as a kind of penance by Christians who regard themselves as sinners.