Arthur Conan Doyle said this quote

Holmes,” I cried, “this is impossible.” “Admirable!” he said. “A most illuminating remark. It IS impossible as I state it, and therefore I must in some respect have stated it wrong. Yet you saw for yourself. Can you suggest any fallacy?