It depends on the intention. Prayer can vary from focusing the mind to an issue, to wish fulfilment, a desire to feel connected to something other, self-aggrandising condescension, all the way up to desperate sympathetic magic.
At the age of five, Skagra decided emphatically that God did not exist. This revelation tends to make most people in the universe who have it react in one of two ways - with relief or with despair. Only Skagra responded to it by thinking, 'Wait a second. That means there's a situation vacant.'