Note that he "temporarily" closed the gold window. In fact, after he did it, the dollar was officially devalued to $42.22 per gold ounce. But as we know, the window never re-opened.
"Fully half the quotations found on the internet are either mis-attributed, or outright fabrications." - Abraham Lincoln