Consider this, the discoveries that people like Einstein make are not their own creations, rather they are discovering what already exists. The laws of physics do not come into being when we discover them, rather they have existed since the beginning as a part of Allah's creation. We are simply uncovering what Allah, subhana wa ta'ala, has created. In addition, we are thinking and using a brain that Allah, s.w.t., has blessed us with. So we are thinking and discovering, but only because Allah s.w.t. has created and allowed us to.