When we pray to God for guidance and inspiration we are sending out energy, thoughts and prayers are energy, with the expectation that the energy we receive is beyond our human will and more in line with what is best for all beings of God. That energy that comes to us in the form of inspiration and direction to our next right action can lead us to the things that we need to have the things that we want.