
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]
  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]
 commences his book of Hadeeth (Saheeh Al-Bukhari) with this Hadeeth and explains that every action that is done without seeking Allah’s pleasure is invalid and devoid of reward.
  commences his book of Hadeeth (Saheeh Al-Bukhari) with this Hadeeth and explains that every action that is done without seeking Allah’s pleasure is invalid and devoid of reward.  said, "this Hadeeth constitutes a third of all knowledge."
  said, "this Hadeeth constitutes a third of all knowledge."  saying: ‘actions are by intentions’. Many of the later scholars are of the opinion that the limit is that the action is made correct or acceptable with the intention. What is meant by this is that a legislated action needs an intention. As for habitual actions such as eating, drinking, dressing, etc., they are not in need of an intention.
  saying: ‘actions are by intentions’. Many of the later scholars are of the opinion that the limit is that the action is made correct or acceptable with the intention. What is meant by this is that a legislated action needs an intention. As for habitual actions such as eating, drinking, dressing, etc., they are not in need of an intention. . Imam Ahmad
. 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: “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.”
  said: ‘actions are by intentions’, and this is taken for every matter.” said: “I asked Abu Abdullah (Imam Ahmad
  said: “I asked Abu Abdullah (Imam Ahmad  ) about the intention in action, how should it be? He
) 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 (showing off).’"
 said: ‘One should concentrate on himself when he intends to do an action, not doing it for the sake of people (showing off).’"  after this: 'and for everyone is what he intended' informs that one cannot 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.
  after this: 'and for everyone is what he intended' informs that one cannot 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.  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]
  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] said: "People will be gathered upon their intentions." [Ibn Majah] He
  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]
  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] 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]
  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] said: "Verily I like to make an intention for everything I do even if it is eating and drinking."
  said: "Verily I like to make an intention for everything I do even if it is eating and drinking."  said: "I have not treated anything more difficult than my intention, because it keeps changing."
  said: "I have not treated anything more difficult than my intention, because it keeps changing."  said: "May be a small action is made great by its intention, and may be a great action is made small by its intention."
  said: "May be a small action is made great by its intention, and may be a great action is made small by its intention."  said that the foundation of the religion is upon three Hadeeths:
  said that the foundation of the religion is upon three Hadeeths: said about the Saying of Allah (which means): "He who created death and life to test you [as to] which of you is best in deed.” [Quran 67: 2]
  said about the Saying of Allah (which means): "He who created death and life to test you [as to] which of you is best in deed.” [Quran 67: 2]