From 'Umar ibn al-Khattaab (radiyallaahu 'anhu) who said that Allah's Messenger (salallaahu 'alaihi wa'sallam) said:
Actions are but by intentions and there is for every person only that which he intended. So he whose migration was for Allaah and His Messenger, then his migration was for Allaah and His Messenger, and he whose migration was to attain some worldly goal or to take a woman in marriage, then his migration was for that which he migrated.
So the pillar of actions is pure and sincere intention, and through purity of intention the hearts become upright and at rest, and through it the person comes to know the right way in his Religion, thus he does everything in the proper manner. Through purity of intention alone will he come to know of the obligations upon him and the rights due to him. Through it he will behave justly in all affairs and will give everything its due right, not going beyond bounds or falling short of the mark.
So this hadeeth is one of the ahadeeth which are the pillars of correct understanding of our upright and true religion.
So when the Muslim servant clearly realises what he has preceded then it becomes obligatory upon him that he should, without any hesitation, surround his sincere intention with the protective barrier for the Islamic Personality which is: