There is a vast difference between doing something to please God or doing the same thing to glorify self.
Two people can do the exact same activity, one will be pleasing to God and the other will not.
This was the case of the account of Cain and Able.
Hebrews 11:4 "By faith Abel offered unto God a more excellent sacrifice than Cain, through which he had witness borne to him that he was righteous, God bearing witness in respect of his gifts: and through it he being dead yet speaketh."
Cain did his sacrifice to God in a minimal way, His desire to was do his obligation, while Able wanted to please God.
Romans 8:7 "because the mind set on the flesh is hostile toward God; for it does not subject itself to the law of God, for it is not even able to do so,"