The chief purpose of prayer in Islam is to act as a person's communication with God. By reciting "The Opening" (al-Fatiha), the first chapter of the Qur'an, as required in all prayer, the worshipper can stand before God, thank and praise Him, and to ask for guidance along the Straight Path "Sirat al-Mustaqim".
In addition, the daily prayers remind Muslims to give thanks for Allah's blessings and that Islam takes precedence over all other concerns, thereby revolving their life around Allah and submitting to His will. Prayer also serves as a formal method of remembering Allah, or dhikr.
In the Qur'an, it is written that: "The true believers are those who feel fear in their hearts (of the consequences of violating the commands of God) when God is mentioned. And when His Revelations are recited to them, they find their faith strengthened. They do their best and then put their trust in their Lord." [Qur'an 8:2]
"To those whose hearts, when God is mentioned, are filled with fear, who show patient perseverance over their afflictions, keep up regular prayer, and spend (in charity) out of what We have bestowed upon them." [Qur'an 22:35]
Prayer is also cited as a means of restraining a believer from social wrongs and moral deviancy. [Qur'an 29:45]