The Messenger of Allah said: "Verily actions are by intentions, and for every person is what he intended. So the one whose ‘hijrah’ (migration) was to Allah and His Messenger, then his ‘hijrah’ was to Allah and His Messenger. And the one whose ‘hijrah’ was for the world to gain from it, or a woman to marry her, then his ‘hijrah’ was for what he made ‘hijrah’ for." [Al-Bukhari and Muslim]
Some say 'actions' here is to be understood in its generality; therefore, nothing is exempt from it. Others relate this as the saying of the majority, meaning the majority of the early scholars. This occurs in the words of Ibn Jareer At-Tabari, Abu Talib Al-Makki, and others from the early scholars . Imam Ahmad said: “I like that for every action, from prayer, fasting or charity or any action of righteousness that there be an intention preceding the action. The Prophet said: ‘actions are by intentions’, and this is taken for every matter.”
Fadl Ibn Ziyad said: “I asked Abu Abdullah (i.e. Imam Ahmad ) about the intention in action, how should it be? He said: ‘One should concentrate on himself when he intends to do an action, not doing it for the sake of people (i.e. showing off).’"
The saying of the Prophet after this: 'and for everyone is what he intended' informs that one can not gain anything from his action except what he intended. So if he intended good, he gets good. If he intended evil then he gets evil. This second statement (of the Hadeeth) is not merely reiterating the first, because the first statement points to the fact that the goodness or corruptness of the action is according to the intention necessary for that action to exist. The second statement points to the fact that the reward of a person for his action is according to his good intention, and that the punishment for his action is according to his evil intention.
1. To distinguish different types of worship, one from the other. Like distinguishing Noon (Thuhr) Prayer from Afternoon (‘Asr) Prayer, or distinguishing the fast of Ramadan from other fasts, or distinguishing actions of worship from actions of habit: like distinguishing bathing from impurity from bathing for the purpose of cleanliness.
2. To distinguish for who or what the action is done: is it for Allah only, for other than Allah, or for Allah and others than Him?
The meaning of ‘intention’ in the speech of the Prophet and the Salaf (righteous predecessors) was used generally to carry the meaning of ‘desire’. In the Quran, the word ‘desire’ is often used to describe an intention, as in Allah’s saying (which means): "…Among you are some who desire this world, and among you are some who desire the Hereafter…" [Quran 3: 152]
Also (what means): "Whoever desires the life of this world and its adornments…" [Quran 11: 15] And (what means): "And keep yourself patient [by being] with those who call upon their Lord in the morning and the evening, seeking His countenance. And let not your eyes pass beyond them, desiring adornments of the worldly life..." [Quran 18: 28]
Sometimes intention is described with the word ‘seeking’ as in Allah’s saying (which means): "But only seeking the countenance of his Lord, Most High."[Quran 92: 20] And (which means): "…and you do not spend except seeking the countenance of Allah…" [Quran 2: 272]
Regarding the second meaning of intention, there are numerous examples from the ‘Sunnah’ and the statements of the ‘Salaf’. To mention a few:
The Messenger said: "People will be gathered upon their intentions." [Ibn Majah] He also said: "Mankind will be resurrected upon their intentions." [Muslim] Another Hadeeth says: "Verily those slain on the battlefield will be resurrected upon their intentions." [Ibn Abi Ad-Dunya]
The Prophet also said: "For the ones whose concern is this world, Allah will scatter his affair, and place poverty between his two eyes. He will not get from the world except what is written for him. For the one whose intention is the Hereafter, Allah will gather for him his affair and place contentment in his heart, and the world will come to him willingly."[Ibn Majah]
Zayd Ash-Shami said: "Verily I like to make an intention for everything I do even if it is eating and drinking."
The three above-mentioned sayings were reported by Ibn Abi Ad-Dunya in his book ‘The Sincerity and the Intention’.
1. "Verily actions are by intention." [Al-Bukhari and Muslim]
Islam teaches us to perform good actions, stay away from the forbidden actions and stop at the doubtful matters. All of this is perfected upon two matters:
Actions must be done correctly, according to the teachings of Islam, and seeking the Pleasure of Allah, Almighty.