What is the Importance of Intention in Islam?
Islam attaches the utmost importance to intentions (niyyah). No action is acceptable to God purely on the basis of its outer appearance. He accepts only such actions as are performed with proper intention, and rejects those performed with ill-intention. Right intention is the moral purposiveness which underlies all actions performed solely for God’s pleasure. One who acts on such feelings will be rewarded by God in the Hereafter.