Immanuel Kant said this quote

[At the beginning of modern science], a light dawned on all those who study nature. They comprehended that reason has insight only into what it itself produces according to its own design; that it must take the lead with principles for its judgments according to constant laws and compel nature to answer its questions, rather than letting nature guide its movements by keeping reason, as it were, in leading-strings; for otherwise accidental observations, made according to no previously designed plan, can never connect up into a necessary law, which is yet what reason seeks and requires. Reason, in order to be taught by nature, must approach nature with its principles in one hand, according to which alone the agreement among appearances can count as laws, and, in the other hand, the experiments thought in accordance with these principles - yet in order to be instructed by nature not like a pupil, who has recited to him whatever the teacher wants to say, but like an appointed judge who compels witnesses to answer the questions he puts to them. Thus even physics owes the advantageous revolution in its way of thinking to the inspiration that what reason would not be able to know of itself and has to learn from nature, it has to seek in the latter (though not merely ascribe to it) in accordance with what reason itself puts into nature. This is how natural science was first brought to the secure course of a science after groping about for so many centuries.