Assalamualaikum Warahmathulahi Wabarakatuhu
We may do any action, but the Intention is all that matters. Intention is very important. If anyone of us is helping someone, the nearby people would see the visual and think great about us. But ALLAH the Almighty, would look at our heart and the intention in it. If the Intention is bad, then even if you do good deed, it would be recorded as a bad deed. Intention matters a lot while praying, reading Qur’an, helping, eating etc.., Intention is called as “Niyyah” in Arabic. And it is not just the uttering the words but, it is to be uttered from the heart i.e.., called as Intention.
Narrated by Umar Ibn Khattab (Radhiallahu Anhu), I head Prophet Muhammad (Sallallahu Alayhiwassalam) saying: “All actions are judged by motives, and each person will be rewarded according to their intention. Thus, he whose migration was to God and His Messenger, his migration is to God and His Messenger; but he whose migration was for some worldly thing he might gain, or for a wife he might marry, his migration is to that for which he migrated.” ( Reference—Sahih Bukhari and Muslim)
The above hadith beautifully explains about Intention and confirms that Intention is all that matters, in every action we do.