Intention and du`a during prayer
Question

My question is on the intention during regular prayer. What should one be thinking during his prayer, the glorification of Allah? The reason I ask is that for some reason I remember reading a hadith that says you should always be asking from Allah during your prayer. Is this true, and if it is how does one go about doing that, by thought or by saying something during the prayer? May allah be pleased with what you are doing.
Praise be to Allah.The intention is a condition of prayer, which is essential for the prayer to be valid. The shar’i definition of the intention is: “Deciding to do an act of worship in order to draw closer to Allah.” This definition includes two meanings: 
1 – The intention to do the action. This distinguishes acts of worship from other actions, and distinguishes acts of worship from one another. So one has the intention that these movements are the prescribed prayer, and  decides whether it is fard (obligatory) or naafil. 
2 – The intention with regard to whom it is done for. This means that by doing this action one is seeking the pleasure of Allah and nothing else. 
The site of this intention is the heart. By simply deciding in his heart to do this action, a person has made his intention. Hence it is not prescribed to speak the intention out loud when one wants to do the action. Rather speaking the intention out loud is a kind of innovation that was not narrated in the Book of Allah or in the Sunnah of His Prophet (peace and blessings of Allah be upon him), nor was it narrated from any of his Sahaabah (may Allah be pleased with them all). See al-Sharh al-Mumti’, 2/283. For more information please see question no. 13337. 
With regard to what a person should think about during the prayer, he should focus on the greatness of his Lord before Whom he is honoured to stand. So he should stand before Him properly, with humility and veneration. He should think about what it is prescribed for him to say in every part of the prayer. When he is standing he should ponder the meaning of what he is reciting from the Quran. When bowing he should think about the meaning of the dhikr he is reciting, and the same when prostrating and in other parts of the prayer. He should also strive in all parts of the prayer to recite the dhikrs and du`as that were narrated from the Prophet (peace and blessings of Allah be upon him). With regard to du`a in the sense of asking Allah for what one needs of the good things in this world and in the Hereafter, the time to do that is when prostrating, after reciting the prescribed dhikr, because the Prophet (peace and blessings of Allah be upon him) said: “I have been forbidden to recite Quran when bowing and prostrating. As for rukoo’ (bowing), glorify your Lord therein, and as for sujood (prostration), strive in du`a, for then it is more likely that your Lord will answer you.” (Narrated by Muslim, 738). 
With regard to what is mentioned in the question, that it is narrated in some ahaadeeth that we have to call upon Allah throughout the prayer, none of the reputable scholars has mentioned this or referred to it. Perhaps you have understood from the definition of some scholars that salah (prayer) means du`a (supplication), and this is the meaning that you mentioned. 
Or perhaps you have heard some scholars saying that salah is all du`a. By this they were referring to the second category of du`a, for some of the scholars divided du`a into two categories: 
1 – du`a in the sense of asking, which means asking Allah for one’s needs; and 2 – du`a in the sense of worship, which means worshipping Allah in the ways that He has prescribed, by means of various acts of worship such as prayer, fasting and zakaah. What this means is that these acts of worship include asking from Allah, is if one is saying, “O Allah accept this from me” or “Reward me for this act of worship by granting me forgiveness, admission to Paradise and salvation from Hell,” etc. All of prayer is considered to be du`a in this sense. 
Hence our advice to all Muslims is to adhere to the Sunnah of the greatest of Messengers (peace and blessings of Allah be upon him) throughout the prayer, following his command: “pray as you have seen me praying.” (Narrated by al-Bukhaari, 631). They should ponder the meanings of what they recite from the Quran, and the dhikrs they recite, so that they may fulfil the greater purpose of prayer which is, as Allah explained: 
“and perform As-salah (Iqaamat-as-salah). Verily, As-salah (the prayer) prevents from Al-Fahshaa’ (i.e. great sins of every kind, unlawful sexual intercourse) and Al-Munkar (i.e. disbelief, polytheism, and every kind of evil wicked deed)”
[al-‘Ankaboot 29:45 – interpretation of the meaning]
 You will find an abbreviated description of the prayer of the Prophet (peace and blessings of Allah be upon him) in Question no. 13340.
We ask Allah to guide us all… Ameen.