A powerful verse in the Quran explains the Real purpose of Prayer. 

29|45|Recite what is revealed to you of the Scripture, and perform the prayer. The prayer prevents indecencies and evils. And the remembrance of God is greater. And God knows what you do.

So prayer is not as most people think. A “get rich quick” scheme or a wishing machine. It increases the remembrance of God, if that increases the person is prevented from commiting immoral acts. They become a better person.