It's from Oliver Twist ...
"If the law supposes that," said Mr. Bumble, squeezing his hat emphatically in both hands, "the law is a ass, a idiot."
He had just been told that the law supposes his wife acts at his direction.
Thanks!