Baruch Spinoza said this quote

He who has a true idea simultaneously knows that he has a true idea, and cannot doubt of the truth of the thing perceived.