“It is only through trusting our own minds that we have come to know Nature herself. If Nature, when fully known, seems to teach us (that is, if the sciences teach us) that our own minds are chance arrangements of atoms, then the sciences themselves would be chance arrangements of atoms and we should have no reason for believing them.”—C.S. Lewis
See Alvin Plantinga’s formulation of this in “Naturalism Defeated”
See a full length book treatment of this argument by Victor Reppert: