“If a servant performs a good deed for the sake of pleasure of Allah and for hereafter and if he includes the pleasure of people in it, he is a polytheist.”
Thawāb al-Aʿmāl wa ʿiqāb al-Aʿmāl #9502. Imam Ja’far Sadiq (a.s.) said, “One who performs a good deed for the sake of people, his outcome is along with those people only. ...