James Buchanan actually said...
This state of the facts raises the question whether Congress, under the Constitution, has the power to give away the public lands either to States or individuals.
Context
Veto Message
06/21/1860