God does say He will graciously entertain our prayers. He says that if we exercise faith and if our request is in accordance with His will He will hear us.
The truth is that the religious and the scientific processes though involving different methods are identical in their final aim. Both aim at reaching the most real.