I think praying to god or a greater power is just like praying to Mother Nature for it to rain skittles some day.
you home that a mirical with happen, so you pray to god,
like when you hope it will rain skittles so you pray to Mother Nature,
and then something happens , all that hoping and praying pays off, when you pray to god for more money to feed your children it happens you get a raise but the thing is its because you worked harder
same as if skittles start falling from the sky, you think it's because you've been praying to Mother Nature but in reality a plane carrying a load of skittles had accidently dropped there load over where you are.