(adj.) pretending to be righteous
Original Sentence #1
The nuns were sanctimonious when it came to teaching care of the body; in fact after every mass they would stand outside of the church for a smoke break.
Original Sentence #2
The preacher taught such sanctimonious lessons on not committing sin; the next week he was arrested for burglary.