A man loses his hat, so he goes to church to steal one off the hat rack.
When he gets there, the priest was giving his sermon on the Ten Commandments.
Something in the sermon gives the man a flash of insight and, after mass, the man goes to the priest for confession.
Man: Father, I have sinned. I lost my hat and I came to church today to steal one.
Father: Is that so?
Man: But then I heard you talking about the Ten Commandments and I changed my mind.
Father: Son, did you make this decision when I said, "Thou shalt not steal?"
Man: No. It was when you said, "Thou shalt not commit adultery". That's when I remembered where my hat was!😁