He said it in different words.
"If a law is unjust, a man is not only right to disobey it, he is obligated to do so."
He didn't say that either.
Not so.
http://www.monticello.org/site/jefferson/if-law-unjustquotation
If a law is unjust...(Quotation)
Quotation: “If a law is unjust, a man is not only right to disobey it, he is obligated to do so.”
Variations: None known.
Sources checked:
Papers of Thomas Jefferson: Digital Edition
Thomas Jefferson retirement papers
Thomas Jefferson: Papers and Biographies collections in Hathi Trust Digital Library
Other attributions: None known.
Earliest appearance in print: undetermined
Comments: This quotation has not been found in Thomas Jefferson’s papers. It has been suggested that it is a paraphrase of Jefferson’s statement in the Declaration of Independence, “...whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government...,” although such a paraphrase would seem to be taking some radical liberties with the original version. The quotation bears a much closer resemblance to Martin Luther King, Jr.’s comment in his famous letter from Birmingham Jail: “One has not only a legal but a moral responsibility to obey just laws. Conversely, one has a moral responsibility to disobey unjust laws.”[1]